From f4dfa3d01fe604c5a7ebfd0b7d5e4e500b5e7b60 Mon Sep 17 00:00:00 2001 From: StefanIliev545 Date: Fri, 22 Sep 2023 15:13:18 +0300 Subject: [PATCH] Removed hardcoded addresses. --- .../deployment_scripts/funding/layer1/001_fund_accounts.ts | 2 +- .../messenger/layer1/001_deploy_cross_chain_messenger.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/deployment_scripts/funding/layer1/001_fund_accounts.ts b/contracts/deployment_scripts/funding/layer1/001_fund_accounts.ts index 7b61fab37d..0c45d38bcd 100644 --- a/contracts/deployment_scripts/funding/layer1/001_fund_accounts.ts +++ b/contracts/deployment_scripts/funding/layer1/001_fund_accounts.ts @@ -8,7 +8,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const {deployer} = await hre.getNamedAccounts(); const l1Accs = await layer1.getNamedAccounts(); - const messageBusAddress = process.env.MESSAGE_BUS_ADDRESS || "0x3FA8A7A039519602eBA00D443a14C0eb2358359a" + const messageBusAddress = process.env.MESSAGE_BUS_ADDRESS!! const messageBus = (await hre.ethers.getContractFactory('MessageBus')).attach(messageBusAddress) const prefundAmount = hre.ethers.utils.parseEther("0.5"); diff --git a/contracts/deployment_scripts/messenger/layer1/001_deploy_cross_chain_messenger.ts b/contracts/deployment_scripts/messenger/layer1/001_deploy_cross_chain_messenger.ts index f5b596e8f7..ae7c6562a9 100644 --- a/contracts/deployment_scripts/messenger/layer1/001_deploy_cross_chain_messenger.ts +++ b/contracts/deployment_scripts/messenger/layer1/001_deploy_cross_chain_messenger.ts @@ -14,7 +14,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const { deployer } = await hre.companionNetworks.layer1.getNamedAccounts(); // Read the message bus address from the management contract deployment. - const messageBusAddress : string = process.env.MESSAGE_BUS_ADDRESS || "0x3FA8A7A039519602eBA00D443a14C0eb2358359a" + const messageBusAddress : string = process.env.MESSAGE_BUS_ADDRESS!! console.log(`Message Bus address ${messageBusAddress}`); // Setup the cross chain messenger and point it to the message bus from the management contract to be used for validation