Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Commit f02b7a9

Browse files
committed
Sleep 1 second to let Ethereum wallet catch up
1 parent b7379ec commit f02b7a9

File tree

1 file changed

+3
-0
lines changed
  • new_project/examples/erc20_btc/src

1 file changed

+3
-0
lines changed

new_project/examples/erc20_btc/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ function checkEnvFile(path: string) {
148148
}
149149

150150
async function printBalances(actor: Actor) {
151+
// Wait a second to let the Ethereum wallet catch up
152+
await new Promise(r => setTimeout(r, 1000));
153+
151154
console.log(
152155
"%s Bitcoin balance: %d. Erc20 Token balance: %d",
153156
actor.name,

0 commit comments

Comments
 (0)