Skip to content

Commit 9c799e5

Browse files
committed
apply: print balance
Signed-off-by: Gyuho Lee <[email protected]>
1 parent ddc4385 commit 9c799e5

File tree

1 file changed

+8
-1
lines changed
  • avalancheup-aws/src/apply

1 file changed

+8
-1
lines changed

avalancheup-aws/src/apply/mod.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::{
1414

1515
use avalanche_types::{
1616
ids, jsonrpc::client::health as jsonrpc_client_health,
17-
jsonrpc::client::info as jsonrpc_client_info, key, wallet,
17+
jsonrpc::client::info as jsonrpc_client_info, key, units, wallet,
1818
};
1919
use aws_manager::{
2020
self, cloudformation, ec2,
@@ -1703,6 +1703,13 @@ cat /tmp/{node_id}.crt
17031703
.build()
17041704
.await
17051705
.unwrap();
1706+
let balance = wallet_to_spend.p().balance().await.unwrap();
1707+
log::info!(
1708+
"adding primary network validators with the wallet {} of balance {} nAVAX ({} AVAX)",
1709+
ki.eth_address,
1710+
balance,
1711+
units::cast_xp_navax_to_avax(primitive_types::U256::from(balance))
1712+
);
17061713

17071714
// add nodes as validators for the primary network
17081715
execute!(

0 commit comments

Comments
 (0)