replace all ownable to initializableOwnable and update v2.0 deploy script

This commit is contained in:
owen05
2020-12-15 11:17:19 +08:00
parent fcc0f5b3b7
commit 6f29fd4bc5
6 changed files with 224 additions and 38 deletions

View File

@@ -8,7 +8,7 @@
pragma solidity 0.6.9;
pragma experimental ABIEncoderV2;
import {Ownable} from "../lib/Ownable.sol";
import {InitializableOwnable} from "../lib/InitializableOwnable.sol";
import {ICloneFactory} from "../lib/CloneFactory.sol";
import {IConstFeeRateModel} from "../lib/ConstFeeRateModel.sol";
import {IDVM} from "../DODOVendingMachine/intf/IDVM.sol";
@@ -27,7 +27,7 @@ interface IDVMFactory {
) external returns (address newVendingMachine);
}
contract DVMFactory is Ownable {
contract DVMFactory is InitializableOwnable {
// ============ Templates ============
address public immutable _CLONE_FACTORY_;