Context.sol 923 B

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