Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Nov 11, 2024
1 parent 09e89a1 commit 64f3f27
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions deploy/054_deploy_op_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,22 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
const chainId = parseInt(await hre.getChainId());

await hre.deployments.deploy("OP_Adapter", {
const constructorArguments = [
WETH[chainId],
USDC[chainId],
OP_STACK_ADDRESS_MAP[chainId][SPOKE_CHAIN_ID].L1CrossDomainMessenger,
OP_STACK_ADDRESS_MAP[chainId][SPOKE_CHAIN_ID].L1StandardBridge,
OP_STACK_ADDRESS_MAP[chainId][SPOKE_CHAIN_ID].L1OpUSDCBridgeAdapter,
];

const { address: deployment } = await hre.deployments.deploy("OP_Adapter", {
from: deployer,
log: true,
skipIfAlreadyDeployed: true,
args: [
WETH[chainId],
USDC[chainId],
OP_STACK_ADDRESS_MAP[chainId][SPOKE_CHAIN_ID].L1CrossDomainMessenger,
OP_STACK_ADDRESS_MAP[chainId][SPOKE_CHAIN_ID].L1StandardBridge,
OP_STACK_ADDRESS_MAP[chainId][SPOKE_CHAIN_ID].L1OpUSDCBridgeAdapter,
],
constructorArguments,
});

await hre.run("verify:verify", { address: deployment, constructorArguments });
};

module.exports = func;
Expand Down

0 comments on commit 64f3f27

Please sign in to comment.