contract Demo { uint256 public a ; address public senderAddress; address public originAddress; function set(uint256 num) external { a = num; senderAddress = msg.sender; originAddress = tx.origin; } }
IDemo.sol
1 2 3 4 5
pragma solidity 0.7.6;
interface IDemo{ function set(uint256 a) external; }