Skip to content

Latest commit

 

History

History
221 lines (201 loc) · 7.02 KB

Context.md

File metadata and controls

221 lines (201 loc) · 7.02 KB

Context.sol

View Source: openzeppelin-solidity/contracts/utils/Context.sol

↘ Derived Contracts: AccessControl, ERC20, Ownable, Pausable

Context

Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execution may not be the actual sender (as far as an application is concerned). This contract is only required for intermediate, library-like contracts.

Functions

_msgSender

function _msgSender() internal view
returns(address)

Arguments

Name Type Description
Source Code
function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

_msgData

function _msgData() internal view
returns(bytes)

Arguments

Name Type Description
Source Code
function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

Contracts