Context.sol 963 B

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
  3. pragma solidity ^0.8.20;
  4. /**
  5. * @dev Provides information about the current execution context, including the
  6. * sender of the transaction and its data. While these are generally available
  7. * via msg.sender and msg.data, they should not be accessed in such a direct
  8. * manner, since when dealing with meta-transactions the account sending and
  9. * paying for execution may not be the actual sender (as far as an application
  10. * is concerned).
  11. *
  12. * This contract is only required for intermediate, library-like contracts.
  13. */
  14. abstract contract Context {
  15. function _msgSender() internal view virtual returns (address) {
  16. return msg.sender;
  17. }
  18. function _msgData() internal view virtual returns (bytes calldata) {
  19. return msg.data;
  20. }
  21. function _contextSuffixLength() internal view virtual returns (uint256) {
  22. return 0;
  23. }
  24. }