From 64f3f27ac2d16de04e4335e8df7a0090e4c52681 Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Fri, 8 Nov 2024 20:53:36 +0000 Subject: [PATCH] Fixes --- deploy/054_deploy_op_adapter.ts | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/deploy/054_deploy_op_adapter.ts b/deploy/054_deploy_op_adapter.ts index cc76b4be3..e1339e239 100644 --- a/deploy/054_deploy_op_adapter.ts +++ b/deploy/054_deploy_op_adapter.ts @@ -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;