Context.sol 791 B

1234567891011121314151617181920212223
  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. return msg.data;
  19. }
  20. }