diff --git a/sn_client/src/wallet.rs b/sn_client/src/wallet.rs index 82bfa83ba4..ce456ff782 100644 --- a/sn_client/src/wallet.rs +++ b/sn_client/src/wallet.rs @@ -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, ) diff --git a/sn_transfers/src/transfers/offline_transfer.rs b/sn_transfers/src/transfers/offline_transfer.rs index ca3421f459..1a8ba88cf2 100644 --- a/sn_transfers/src/transfers/offline_transfer.rs +++ b/sn_transfers/src/transfers/offline_transfer.rs @@ -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) =