Skip to content

Commit

Permalink
feat(cli): update get balance to display tez units
Browse files Browse the repository at this point in the history
  • Loading branch information
zcabter committed Jul 31, 2024
1 parent 31ceb82 commit 612ae96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/jstz_cli/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ async fn get_balance(
debug!("resolved `account` -> {:?}", address);

let balance = cfg.jstz_client(&network)?.get_balance(&address).await?;
let tez_balance = balance as f64 / u64::pow(10, 6) as f64;

info!("Balance of {} is {} $CTEZ", address, balance);
info!("Balance of {} is {}", address, tez_balance);

Ok(())
}
Expand Down
1 change: 0 additions & 1 deletion crates/jstz_rollup/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ fn deploy(
println!("Deploying rollup...");

let rollup_address = JstzRollup::deploy(&client, &operator.to_string(), &installer)?;
// bridge.set_rollup(&client, &operator.to_string(), &rollup_address)?;

println!("\tAddress: {}", rollup_address);

Expand Down

0 comments on commit 612ae96

Please sign in to comment.