From 2792a3c835609d9b412066495fae58338dea5ffc Mon Sep 17 00:00:00 2001 From: phoax Date: Mon, 5 Jun 2023 14:09:41 +0200 Subject: [PATCH 1/2] fix: remove pk --- packages/contracts/.env.example | 2 +- packages/contracts/scripts/deployL1.ts | 14 ++++++++++---- packages/contracts/scripts/deployL2.ts | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/contracts/.env.example b/packages/contracts/.env.example index b7d1388ef..b9895105b 100644 --- a/packages/contracts/.env.example +++ b/packages/contracts/.env.example @@ -11,6 +11,6 @@ L2_RESOLVER_NFT_SYMBOL=LTST L2_RESOLVER_NFT_BASE_URI=http://localhost:3000/metadata/ # Keys -PRIVATE_KEY=0x97d505ce954af0f961baf23911bf752fe5d09dc92620d0aa52a2d07038e16e2d +PRIVATE_KEY= ETHERSCAN_API_KEY=6WMKYHZ1B4R3AFBBWN7M7QPZGQQ5C53TWJ diff --git a/packages/contracts/scripts/deployL1.ts b/packages/contracts/scripts/deployL1.ts index e4ae1ee64..4bb81678e 100644 --- a/packages/contracts/scripts/deployL1.ts +++ b/packages/contracts/scripts/deployL1.ts @@ -38,10 +38,16 @@ async function main() { if (chainId !== HARDHAT_NETWORK_CHAIN_ID) { // Only verify on "live" blockchain setTimeout(async () => { - await run("verify:verify", { - address: lineaResolverStub.address, - constructorArguments: [[gatewayUrl], L2_RESOLVER_ADDRESS, rollupAddr], - }); + console.log("Verify on Etherscan"); + + try { + await run("verify:verify", { + address: lineaResolverStub.address, + constructorArguments: [[gatewayUrl], L2_RESOLVER_ADDRESS, rollupAddr], + }); + } catch (error) { + console.error(error.message); + } }, 20000); } } diff --git a/packages/contracts/scripts/deployL2.ts b/packages/contracts/scripts/deployL2.ts index ead73af58..379c5717a 100644 --- a/packages/contracts/scripts/deployL2.ts +++ b/packages/contracts/scripts/deployL2.ts @@ -20,7 +20,7 @@ async function main() { if (chainId !== 31337) { setTimeout(async () => { - console.error("Verify on Etherscan"); + console.log("Verify on Etherscan"); try { await run("verify:verify", { address: lineaResolver.address, From 6007015ce2919e120874827ade8fce91187ec45f Mon Sep 17 00:00:00 2001 From: phoax Date: Mon, 5 Jun 2023 14:10:41 +0200 Subject: [PATCH 2/2] feat: doc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 269432f99..7315da14a 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ A very simple script that tests if ccip-read integration is working. ### Setup local node -In a terminal, setup a L1 local node: +In a terminal, setup a forked L1 local node: ```shell cd packages/contracts