Skip to content

Commit

Permalink
Bad commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Dec 13, 2024
1 parent 73ccbee commit d44ead3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sdk/rpcs/get_balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl SDK {
};

let result = if let Some(hash) = state_root_hash {
self.get_balance(purse_uref, hash, verbosity, rpc_address)
self.get_balance(purse_uref, Some(hash.to_digest()), verbosity, rpc_address)
.await
} else if let Some(hash) = state_root_hash_as_string.clone() {
let hash = if !hash.is_empty() {
Expand All @@ -146,10 +146,10 @@ impl SDK {
} else {
"".to_string()
};
self.get_balance(purse_uref, hash.as_str(), verbosity, rpc_address)
self.get_balance(purse_uref, Some(hash.as_str()), verbosity, rpc_address)
.await
} else {
self.get_balance(purse_uref, "", verbosity, rpc_address)
self.get_balance(purse_uref, None::<&str>, verbosity, rpc_address)
.await
};

Expand Down

0 comments on commit d44ead3

Please sign in to comment.