Context.sol 900 B

12345678910111213141516171819202122
  1. pragma solidity ^0.6.0;
  2. /*
  3. * @dev Provides information about the current execution context, including the
  4. * sender of the transaction and its data. While these are generally available
  5. * via msg.sender and msg.data, they should not be accessed in such a direct
  6. * manner, since when dealing with GSN meta-transactions the account sending and
  7. * paying for execution may not be the actual sender (as far as an application
  8. * is concerned).
  9. *
  10. * This contract is only required for intermediate, library-like contracts.
  11. */
  12. abstract contract Context {
  13. function _msgSender() internal view virtual returns (address payable) {
  14. return msg.sender;
  15. }
  16. function _msgData() internal view virtual returns (bytes memory) {
  17. this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
  18. return msg.data;
  19. }
  20. }