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