From 2b18807a5012c8b379c89d99efedf0fea20cda4a Mon Sep 17 00:00:00 2001 From: Richard Zhang <25049221+RichardZHLH@users.noreply.github.com> Date: Wed, 21 Aug 2024 17:43:56 +0800 Subject: [PATCH] Update _deploy.ts add sleep another 5 seconds. otherwise, the isContractDeployed() method will return false. --- build/_deploy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/build/_deploy.ts b/build/_deploy.ts index 876dd3a..38bbbd8 100644 --- a/build/_deploy.ts +++ b/build/_deploy.ts @@ -130,6 +130,7 @@ async function main() { const seqnoAfter = await walletContract.getSeqNo(); if (seqnoAfter > seqno) break; } + await sleep(5000); if (await client.isContractDeployed(newContractAddress)) { console.log(` - SUCCESS! Contract deployed successfully to address: ${newContractAddress.toFriendly()}`); const contractBalance = await client.getBalance(newContractAddress);