From f93c1a6b555a69d910f53683417f0a385ad361cf Mon Sep 17 00:00:00 2001 From: Axe Date: Mon, 29 Jan 2024 13:30:19 +0000 Subject: [PATCH] fix balance msg --- src/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 177d12fe..58bc7838 100644 --- a/src/app.js +++ b/src/app.js @@ -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) &&