Skip to content

Commit

Permalink
sdk/tx: fix the display of insufficient funds for non-native token
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed May 30, 2024
1 parent 610a394 commit cf4e9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sdk/src/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3215,7 +3215,7 @@ async fn construct_shielded_parts<N: Namada>(
Err(Build(builder::Error::InsufficientFunds(_))) => {
return Err(TxSubmitError::NegativeBalanceAfterTransfer(
Box::new(source.effective_address()),
amount.amount().to_string_native(),
amount.to_string(),
Box::new(token.clone()),
)
.into());
Expand Down

0 comments on commit cf4e9a8

Please sign in to comment.