Skip to content

Commit

Permalink
fix deployer acc
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel committed Feb 12, 2024
1 parent 9585387 commit 5ad9b74
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {

// Get the prefunded L2 deployer account to use for deploying.
const {deployer} = await getNamedAccounts();
const l1Accounts = await companionNetworks.layer1.getNamedAccounts();

console.log(`Script: 001_deploy_cross_chain_messenger.ts - address used: ${deployer}`);

Expand All @@ -42,7 +43,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const mgmtContract = (await hre.ethers.getContractFactory('ManagementContract')).attach(mgmtContractAddress);
const tx = await mgmtContract.populateTransaction.SetImportantContractAddress("L2CrossChainMessenger", crossChainDeployment.address);
const receipt = await companionNetworks.layer1.deployments.rawTx({
from: deployer,
from: l1Accounts.deployer,
to: mgmtContractAddress,
data: tx.data,
log: true,
Expand Down

0 comments on commit 5ad9b74

Please sign in to comment.