Skip to content

Commit

Permalink
chore: fixup send_spends and use ExcessiveNanoValue error
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Jan 10, 2024
1 parent 13b5533 commit 559fb83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sn_client/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl WalletClient {
// send to network
if let Err(error) = self
.client
.send(
.send_spends(
self.wallet.unconfirmed_spend_requests().iter(),
verify_store,
)
Expand Down
6 changes: 1 addition & 5 deletions sn_transfers/src/transfers/offline_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ pub fn create_unsigned_transfer(
.try_fold(NanoTokens::zero(), |total, (amount, _, _)| {
total.checked_add(*amount)
})
.ok_or_else(|| {
Error::CashNoteReissueFailed(
"Overflow occurred while summing the amounts for the recipients.".to_string(),
)
})?;
.ok_or(Error::ExcessiveNanoValue)?;

// We need to select the necessary number of cash_notes from those that we were passed.
let (cash_notes_to_spend, change_amount) =
Expand Down

0 comments on commit 559fb83

Please sign in to comment.