Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve insufficient funds error #1656

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion sdk/src/wallet/error.rs
Original file line number Diff line number Diff line change
@@ -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} glow required, but {available} glow available.")]
thibault-martinez marked this conversation as resolved.
Show resolved Hide resolved
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}")]