Skip to content

Commit

Permalink
fix balance msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ngmachado committed Jan 29, 2024
1 parent 092cf0d commit f93c1a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ class App {
}
// create all web3 infrastructure needed
await this.client.init();
this.notifier.sendNotification(`RPC connected with chainId ${await this.client.getChainId()}, account ${this.client.agentAccounts?.address} has balance ${this.client.agentAccounts ? wad4human(await this.client.getAccountBalance()) : "N/A"}`);
const balanceMsg = `RPC connected with chainId ${await this.client.getChainId()}, account ${this.client.accountManager.getAccountAddress(0)} has balance ${wad4human(await this.client.accountManager.getAccountBalance(0))}`;
this.notifier.sendNotification(balanceMsg);

//check conditions to decide if getting snapshot data
if ((!dbFileExist || this.config.COLD_BOOT) &&
Expand Down

0 comments on commit f93c1a6

Please sign in to comment.