Transpile 7bce2b72
This commit is contained in:
32
contracts/utils/ContextUpgradeable.sol
Normal file
32
contracts/utils/ContextUpgradeable.sol
Normal file
@ -0,0 +1,32 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
|
||||
|
||||
pragma solidity ^0.8.0;
|
||||
import "../proxy/utils/Initializable.sol";
|
||||
|
||||
/**
|
||||
* @dev 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.
|
||||
*/
|
||||
abstract contract ContextUpgradeable is Initializable {
|
||||
function __Context_init() internal onlyInitializing {
|
||||
__Context_init_unchained();
|
||||
}
|
||||
|
||||
function __Context_init_unchained() internal onlyInitializing {
|
||||
}
|
||||
function _msgSender() internal view virtual returns (address) {
|
||||
return msg.sender;
|
||||
}
|
||||
|
||||
function _msgData() internal view virtual returns (bytes calldata) {
|
||||
return msg.data;
|
||||
}
|
||||
uint256[50] private __gap;
|
||||
}
|
||||
Reference in New Issue
Block a user