Skip to content

Commit

Permalink
fix: show keys
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Sep 13, 2023
1 parent 8304221 commit 53e0e53
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cmd/soroban-cli/src/commands/contract/bump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,19 +180,19 @@ impl Cmd {
let (result, meta, events) = client
.prepare_and_send_transaction(&tx, &key, &[], &network.network_passphrase, None, None)
.await?;
let entries = client
.get_ledger_entries(&[
LedgerKey::Expiration(LedgerKeyExpiration {
key_hash: Hash(
Sha256::digest(needle.clone().to_xdr_base64()?.as_bytes()).into(),
),
}),
needle,
])
.await?;
let keys = &[
LedgerKey::Expiration(LedgerKeyExpiration {
key_hash: Hash(Sha256::digest(needle.clone().to_xdr_base64()?.as_bytes()).into()),
}),
needle,
];
tracing::trace!("{keys:#?}");
let entries = client.get_ledger_entries(keys).await?;
let entries = entries.entries.ok_or(Error::LedgerEntryNotFound)?;
tracing::trace!("entries:\n{entries:#?}");
tracing::trace!("{:#?}", LedgerEntryData::from_xdr_base64(&entries[0].xdr));
if !entries.is_empty() {
tracing::trace!("{:#?}", LedgerEntryData::from_xdr_base64(&entries[0].xdr));
}
tracing::trace!(?result);
tracing::trace!("Meta:\n {meta:#?}");
if !events.is_empty() {
Expand Down

0 comments on commit 53e0e53

Please sign in to comment.