Skip to content

Commit

Permalink
resolve at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
thepiwo committed Mar 3, 2021
1 parent d74397d commit 625ff3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/aeternity.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ module.exports = class Aeternity {
const interval = setInterval(async () => {
if (new BigNumber(await this.client.getBalance(this.keypair.publicKey)).isGreaterThanOrEqualTo(fundingAmount)) {
logger.info("received funding");
resolve(true);
this.timeoutAwaitFunding(fundingAmount)
clearInterval(interval);
resolve(true);
}
}, 2000);
});
Expand Down

0 comments on commit 625ff3c

Please sign in to comment.