diff --git a/sdk/CHANGELOG.md b/sdk/CHANGELOG.md index 7910392051..4b1fbe3df7 100644 --- a/sdk/CHANGELOG.md +++ b/sdk/CHANGELOG.md @@ -25,6 +25,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `Account::prepare_claim_outputs` method; +### Changed + +- Display of `WalletError::InsufficientFunds`; + ## 1.1.2 - 2023-10-26 ### Added diff --git a/sdk/src/wallet/error.rs b/sdk/src/wallet/error.rs index 10dcc154c5..612f83e8cd 100644 --- a/sdk/src/wallet/error.rs +++ b/sdk/src/wallet/error.rs @@ -47,7 +47,7 @@ pub enum Error { #[error("failed to get remainder address")] FailedToGetRemainder, /// Insufficient funds to send transaction. - #[error("insufficient funds {available}/{required} available")] + #[error("address owns insufficient funds: {required} base unit required, but {available} base unit available")] InsufficientFunds { available: u64, required: u64 }, /// Invalid coin type, all accounts need to have the same coin type #[error("invalid coin type for new account: {new_coin_type}, existing coin type is: {existing_coin_type}")]