Skip to content

Commit

Permalink
chore(devnet_addr_64): Use to fixed hex
Browse files Browse the repository at this point in the history
  • Loading branch information
akhercha committed Oct 14, 2024
1 parent a2148c5 commit 3d5f841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/client/devnet/src/predeployed_contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ impl fmt::Display for DevnetKeys {
writeln!(f, "==== DEVNET PREDEPLOYED CONTRACTS ====")?;
writeln!(f)?;
for (i, contract) in self.0.iter().enumerate() {
writeln!(f, "(#{}) Address: 0x{:0>64}", i + 1, format!("{:x}", contract.address),)?;
writeln!(f, " Private key: {:#x}", contract.secret.secret_scalar())?;
writeln!(f, "(#{}) Address: {}", i + 1, contract.address.to_fixed_hex_string())?;
writeln!(f, " Private key: {}", contract.secret.secret_scalar().to_fixed_hex_string())?;
match contract.balance.as_u128_fri_wei() {
Ok((fri, wei)) => {
let (strk, eth) = (fri / STRK_FRI_DECIMALS, wei / ETH_WEI_DECIMALS);
Expand Down

0 comments on commit 3d5f841

Please sign in to comment.