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

Commit 2112543

Browse files
bors[bot]luckysori
andauthored
Merge #261
261: Sleep 1 second to let Ethereum wallet catch up r=luckysori a=luckysori Co-authored-by: Lucas Soriano del Pino <l.soriano.del.pino@gmail.com>
2 parents b7379ec + f02b7a9 commit 2112543

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)