Transpile 2d97b6b4
This commit is contained in:
@ -7,8 +7,6 @@ import "../proxy/utils/Initializable.sol";
|
||||
|
||||
contract ContextMockUpgradeable is Initializable, ContextUpgradeable {
|
||||
function __ContextMock_init() internal onlyInitializing {
|
||||
__Context_init_unchained();
|
||||
__ContextMock_init_unchained();
|
||||
}
|
||||
|
||||
function __ContextMock_init_unchained() internal onlyInitializing {
|
||||
@ -24,12 +22,17 @@ contract ContextMockUpgradeable is Initializable, ContextUpgradeable {
|
||||
function msgData(uint256 integerValue, string memory stringValue) public {
|
||||
emit Data(_msgData(), integerValue, stringValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* This empty reserved space is put in place to allow future versions to add new
|
||||
* variables without shifting down storage in the inheritance chain.
|
||||
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
|
||||
*/
|
||||
uint256[50] private __gap;
|
||||
}
|
||||
|
||||
contract ContextMockCallerUpgradeable is Initializable {
|
||||
function __ContextMockCaller_init() internal onlyInitializing {
|
||||
__ContextMockCaller_init_unchained();
|
||||
}
|
||||
|
||||
function __ContextMockCaller_init_unchained() internal onlyInitializing {
|
||||
@ -45,5 +48,11 @@ contract ContextMockCallerUpgradeable is Initializable {
|
||||
) public {
|
||||
context.msgData(integerValue, stringValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* This empty reserved space is put in place to allow future versions to add new
|
||||
* variables without shifting down storage in the inheritance chain.
|
||||
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
|
||||
*/
|
||||
uint256[50] private __gap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user