Skip to content

Commit

Permalink
change how we get the signer
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel committed Nov 30, 2023
1 parent c1de27b commit 0bfb173
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/deployment_scripts/bridge/001_deploy_bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
});

// get management contract and write the L1 bridge address to it
const l1Signer = await hre.ethers.getSigner(accountsL1.deployer);
const l1Signer = await hre.ethers.provider.getSigner();
const mgmtContract = (await hre.ethers.getContractFactory('ManagementContract')).attach(mgmtContractAddress).connect(l1Signer);
const recordL1AddressTx = await mgmtContract.SetImportantContractAddress("L1Bridge", layer1BridgeDeployment.address);
const receipt = await recordL1AddressTx.wait();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
});

// get management contract and write the cross chain messenger address to it
const l1Signer = await hre.ethers.getSigner(deployer);
const l1Signer = await hre.ethers.provider.getSigner();
const mgmtContract = (await hre.ethers.getContractFactory('ManagementContract')).attach(mgmtContractAddress).connect(l1Signer);
const tx = await mgmtContract.SetImportantContractAddress("L1CrossChainMessenger", crossChainDeployment.address);
const receipt = await tx.wait();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
});

// get L1 management contract and write the cross chain messenger address to it
const accountsL1 = await hre.companionNetworks.layer1.getNamedAccounts();
const l1Signer = await hre.ethers.getSigner(accountsL1.deployer);
const l1Signer = await hre.ethers.provider.getSigner();
const mgmtContract = (await hre.ethers.getContractFactory('ManagementContract')).attach(mgmtContractAddress).connect(l1Signer);
const tx = await mgmtContract.SetImportantContractAddress("L2CrossChainMessenger", crossChainDeployment.address);
const receipt = await tx.wait();
Expand Down

0 comments on commit 0bfb173

Please sign in to comment.