* Update contract pragmas to solidity 0.7 * Remove internal declaration on constructors * Reference SafeMath explicitely * Remove public constructor declaration from abstract contracts * Remove public constructor declaration from non-abstract contracts
30 lines
730 B
Solidity
30 lines
730 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.7.0;
|
|
|
|
import "../GSN/Context.sol";
|
|
|
|
contract ContextMock is Context {
|
|
event Sender(address sender);
|
|
|
|
function msgSender() public {
|
|
emit Sender(_msgSender());
|
|
}
|
|
|
|
event Data(bytes data, uint256 integerValue, string stringValue);
|
|
|
|
function msgData(uint256 integerValue, string memory stringValue) public {
|
|
emit Data(_msgData(), integerValue, stringValue);
|
|
}
|
|
}
|
|
|
|
contract ContextMockCaller {
|
|
function callSender(ContextMock context) public {
|
|
context.msgSender();
|
|
}
|
|
|
|
function callData(ContextMock context, uint256 integerValue, string memory stringValue) public {
|
|
context.msgData(integerValue, stringValue);
|
|
}
|
|
}
|