Skip to content

Commit

Permalink
chore: Padded devnet addresses display to 64 characters (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhercha authored Oct 14, 2024
1 parent 6efc4d6 commit fb38719
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/starknet-js-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-on-cache-miss: true
- name: Setup dev chain and run tests
run: |
./target/release/madara --name madara --base-path ../madara_db --telemetry-disabled --rpc-port 9944 --rpc-cors all --devnet --preset devnet &
./target/release/madara --name madara --base-path ../madara_db --rpc-port 9944 --rpc-cors all --devnet --preset devnet &
MADARA_PID=$!
while ! echo exit | nc localhost 9944; do sleep 1; done
cd tests/js_tests
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Next release

- chore: padded devnet address display with 64 chars
- feat(script): added more capabilities to the launcher script
- fix(fgw): sync from other nodes and block signature
- fix: added more launcher capabilities
Expand Down
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: {:#x}", i + 1, 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 fb38719

Please sign in to comment.