Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Nov 7, 2023
1 parent aff5554 commit 369c42b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions script/deploy/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ contract Deploy is Common {
config = ScriptTools.readInput(instanceId);
c3 = ScriptTools.readInput("../c3");

ORMP_ADDR = c3.readAddress("ORMP_ADDR");
ORMP_SALT = c3.readBytes32("ORMP_SALT");
ORACLE_ADDR = c3.readAddress("ORACLE_ADDR");
ORACLE_SALT = c3.readBytes32("ORACLE_SALT");
RELAYER_ADDR = c3.readAddress("RELAYER_ADDR");
RELAYER_SALT = c3.readBytes32("RELAYER_SALT");
ORMP_ADDR = c3.readAddress(".ORMP_ADDR");
ORMP_SALT = c3.readBytes32(".ORMP_SALT");
ORACLE_ADDR = c3.readAddress(".ORACLE_ADDR");
ORACLE_SALT = c3.readBytes32(".ORACLE_SALT");
RELAYER_ADDR = c3.readAddress(".RELAYER_ADDR");
RELAYER_SALT = c3.readBytes32(".RELAYER_SALT");

deployer = config.readAddress(".DEPLOYER");
dao = config.readAddress(".DAO");
Expand Down Expand Up @@ -137,13 +137,13 @@ contract Deploy is Common {
III(RELAYER_ADDR).setApproved(relayerOperator, true);
require(III(RELAYER_ADDR).isApproved(relayerOperator), "!r-operator");

III(ORMP_ADDR).changeSetter(dao);
require(III(ORMP_ADDR).setter() == dao, "!dao");
// III(ORMP_ADDR).changeSetter(dao);
// require(III(ORMP_ADDR).setter() == dao, "!dao");

III(ORACLE_ADDR).changeOwner(dao);
require(III(ORACLE_ADDR).owner() == dao, "!dao");
// III(ORACLE_ADDR).changeOwner(dao);
// require(III(ORACLE_ADDR).owner() == dao, "!dao");

III(RELAYER_ADDR).changeOwner(dao);
require(III(RELAYER_ADDR).owner() == dao, "!dao");
// III(RELAYER_ADDR).changeOwner(dao);
// require(III(RELAYER_ADDR).owner() == dao, "!dao");
}
}

0 comments on commit 369c42b

Please sign in to comment.