From 222717892e1368a04f38aeacc2bbeea3e8db5669 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 28 Jan 2023 13:47:27 +0800 Subject: [PATCH] fix(protocol): update ProofVerifier address name in AddressManager --- packages/protocol/tasks/deploy_L1.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/protocol/tasks/deploy_L1.ts b/packages/protocol/tasks/deploy_L1.ts index 11941025d05..4c338b00b6b 100644 --- a/packages/protocol/tasks/deploy_L1.ts +++ b/packages/protocol/tasks/deploy_L1.ts @@ -193,10 +193,15 @@ export async function deployContracts(hre: any) { await utils.waitTx( hre, await AddressManager.setAddress( - ethers.utils.solidityPack( - ["string", "uint256"], - ["plonk_verifier_", 0] - ), + // string(abi.encodePacked("plonk_verifier_", i)) + `${chainId}.${Buffer.from( + ethers.utils.arrayify( + ethers.utils.solidityPack( + ["string", "uint256"], + ["plonk_verifier_", 0] + ) + ) + ).toString()}`, PlonkVerifier.address ) );