Context (Verify msg.sender)
contract AnyCallExecutor {
struct Context {
address from;
uint256 fromChainID;
uint256 nonce;
}
Context public context;}How to import the context interface
interface CallProxy{
function anyCall(
address _to,
bytes calldata _data,
address _fallback,
uint256 _toChainID,
uint256 _flags
) external payable;
function context() external view returns (address from, uint256 fromChainID, uint256 nonce);
function executor() external view returns (address executor);
}Getting Context and Verify Sender
Last updated