add comments
This commit is contained in:
@@ -12,6 +12,9 @@ interface ICloneFactory {
|
|||||||
function clone(address prototype) external returns (address proxy);
|
function clone(address prototype) external returns (address proxy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// introduction of proxy mode design: https://docs.openzeppelin.com/upgrades/2.8/
|
||||||
|
// minimum implementation of transparent proxy: https://eips.ethereum.org/EIPS/eip-1167
|
||||||
|
|
||||||
contract CloneFactory is ICloneFactory {
|
contract CloneFactory is ICloneFactory {
|
||||||
function clone(address prototype) external override returns (address proxy) {
|
function clone(address prototype) external override returns (address proxy) {
|
||||||
bytes20 targetBytes = bytes20(prototype);
|
bytes20 targetBytes = bytes20(prototype);
|
||||||
|
|||||||
@@ -106,6 +106,6 @@ contract Storage is InitializableOwnable, ReentrancyGuard {
|
|||||||
|
|
||||||
// ============ Version Control ============
|
// ============ Version Control ============
|
||||||
function version() external pure returns (uint256) {
|
function version() external pure returns (uint256) {
|
||||||
return 1;
|
return 100; // 1.0.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user