Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ContextUpgradeable

Inherits: Initializable

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

__Context_init

function __Context_init() internal onlyInitializing;

__Context_init_unchained

function __Context_init_unchained() internal onlyInitializing;

_msgSender

function _msgSender() internal view virtual returns (address);

_msgData

function _msgData() internal view virtual returns (bytes calldata);

_contextSuffixLength

function _contextSuffixLength() internal view virtual returns (uint256);