Skip to content

Commit

Permalink
store-tool: Reuses Pubkey::to_string() (#1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Jun 5, 2024
1 parent f807911 commit 3e22a7b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion accounts-db/store-tool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ license = { workspace = true }
edition = { workspace = true }

[dependencies]
bs58 = { workspace = true }
clap = { workspace = true }
solana-accounts-db = { workspace = true, features = ["dev-context-only-utils"] }
solana-sdk = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions accounts-db/store-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ fn main() {
println!(
"{:#0offset_width$x}: {:44}, owner: {:44}, data size: {:data_size_width$}, lamports: {}",
account.offset(),
bs58::encode(account.pubkey()).into_string(),
bs58::encode(account.owner()).into_string(),
account.pubkey().to_string(),
account.owner().to_string(),
account.data_len(),
account.lamports(),
);
Expand Down

0 comments on commit 3e22a7b

Please sign in to comment.