2024-03-29 21:52:45 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
|
|
|
|
contract Dummy {
|
|
|
|
uint256 public value;
|
|
|
|
string public text;
|
|
|
|
|
|
|
|
function initialize() public {
|
|
|
|
value = 1;
|
2025-01-05 09:29:24 +00:00
|
|
|
text = 'dummy';
|
2024-03-29 21:52:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// function update(address _impl) public {
|
|
|
|
// MyProxy(address(uint160(address(this)))).upgradeTo(_impl);
|
|
|
|
// // MyProxy(address(this)).upgradeTo(_impl);
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
|
|
|
|
contract DummySecond {
|
|
|
|
uint256 public value;
|
|
|
|
string public text;
|
|
|
|
|
|
|
|
function initialize() public {
|
|
|
|
value = 2;
|
2025-01-05 09:29:24 +00:00
|
|
|
text = 'dummy2';
|
2024-03-29 21:52:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// function update(address _impl) public {
|
|
|
|
// MyProxy(address(uint160(address(this)))).upgradeTo(_impl);
|
|
|
|
// }
|
|
|
|
}
|