Skip to content

Commit

Permalink
Update script
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgcyx committed Dec 12, 2023
1 parent 2929d67 commit 2d2e1d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy/child_deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ exports.deployChildContracts = async () => {
// Deploy child bridge impl
let childBridgeImplObj = JSON.parse(fs.readFileSync('../../out/ChildERC20Bridge.sol/ChildERC20Bridge.json', 'utf8'));
console.log("Deploy child bridge impl...");
let childBridgeImpl = await helper.deployChildContract(childBridgeImplObj, adminWallet);
let childBridgeImpl = await helper.deployChildContract(childBridgeImplObj, adminWallet, adminWallet.address);
console.log("Transaction submitted: ", JSON.stringify(childBridgeImpl.deployTransaction, null, 2));
await helper.waitForReceipt(childBridgeImpl.deployTransaction.hash, childProvider);
console.log("Deployed to CHILD_BRIDGE_IMPL_ADDRESS: ", childBridgeImpl.address);
Expand All @@ -90,7 +90,7 @@ exports.deployChildContracts = async () => {
// Deploy child adaptor impl
let childAdaptorImplObj = JSON.parse(fs.readFileSync('../../out/ChildAxelarBridgeAdaptor.sol/ChildAxelarBridgeAdaptor.json', 'utf8'));
console.log("Deploy child adaptor impl...");
let childAdaptorImpl = await helper.deployChildContract(childAdaptorImplObj, adminWallet, childGatewayAddr);
let childAdaptorImpl = await helper.deployChildContract(childAdaptorImplObj, adminWallet, childGatewayAddr, adminWallet.address);
console.log("Transaction submitted: ", JSON.stringify(childAdaptorImpl.deployTransaction, null, 2));
await helper.waitForReceipt(childAdaptorImpl.deployTransaction.hash, childProvider);
console.log("Deployed to CHILD_ADAPTOR_IMPL_ADDRESS: ", childAdaptorImpl.address);
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy/root_deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ exports.deployRootContracts = async () => {
// Deploy root bridge impl
let rootBridgeImplObj = JSON.parse(fs.readFileSync('../../out/RootERC20BridgeFlowRate.sol/RootERC20BridgeFlowRate.json', 'utf8'));
console.log("Deploy root bridge impl...");
let rootBridgeImpl = await helper.deployRootContract(rootBridgeImplObj, adminWallet);
let rootBridgeImpl = await helper.deployRootContract(rootBridgeImplObj, adminWallet, adminWallet.address);
console.log("Transaction submitted: ", JSON.stringify(rootBridgeImpl.deployTransaction, null, 2));
await helper.waitForReceipt(rootBridgeImpl.deployTransaction.hash, rootProvider);
console.log("Deployed to ROOT_BRIDGE_IMPL_ADDRESS: ", rootBridgeImpl.address);
Expand All @@ -74,7 +74,7 @@ exports.deployRootContracts = async () => {
// Deploy root adaptor impl
let rootAdaptorImplObj = JSON.parse(fs.readFileSync('../../out/RootAxelarBridgeAdaptor.sol/RootAxelarBridgeAdaptor.json', 'utf8'));
console.log("Deploy root adaptor impl...");
let rootAdaptorImpl = await helper.deployRootContract(rootAdaptorImplObj, adminWallet, rootGatewayAddr);
let rootAdaptorImpl = await helper.deployRootContract(rootAdaptorImplObj, adminWallet, rootGatewayAddr, adminWallet.address);
console.log("Transaction submitted: ", JSON.stringify(rootAdaptorImpl.deployTransaction, null, 2));
await helper.waitForReceipt(rootAdaptorImpl.deployTransaction.hash, rootProvider);
console.log("Deployed to ROOT_ADAPTOR_IMPL_ADDRESS: ", rootAdaptorImpl.address);
Expand Down

0 comments on commit 2d2e1d6

Please sign in to comment.