@@ -23,8 +23,8 @@ use crate::client::Client;
23
23
24
24
#[ derive( Debug ) ]
25
25
pub enum Error {
26
- /// Insufficaint Funds
27
- InsufficantFunds ,
26
+ /// Insufficient Funds
27
+ InsufficientFunds ,
28
28
Cashu ( cashu:: error:: wallet:: Error ) ,
29
29
Client ( crate :: client:: Error ) ,
30
30
Custom ( String ) ,
@@ -35,7 +35,7 @@ impl StdError for Error {}
35
35
impl fmt:: Display for Error {
36
36
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
37
37
match self {
38
- Error :: InsufficantFunds => write ! ( f, "Insufficant Funds" ) ,
38
+ Error :: InsufficientFunds => write ! ( f, "Insufficient Funds" ) ,
39
39
Error :: Cashu ( err) => write ! ( f, "{}" , err) ,
40
40
Error :: Client ( err) => write ! ( f, "{}" , err) ,
41
41
Error :: Custom ( err) => write ! ( f, "{}" , err) ,
@@ -341,7 +341,7 @@ impl Wallet {
341
341
342
342
if amount_available. lt ( & amount) {
343
343
println ! ( "Not enough funds" ) ;
344
- return Err ( Error :: InsufficantFunds ) ;
344
+ return Err ( Error :: InsufficientFunds ) ;
345
345
}
346
346
347
347
// If amount available is EQUAL to send amount no need to split
@@ -403,7 +403,7 @@ impl Wallet {
403
403
404
404
if amount_available. lt ( & amount) {
405
405
println ! ( "Not enough funds" ) ;
406
- return Err ( Error :: InsufficantFunds ) ;
406
+ return Err ( Error :: InsufficientFunds ) ;
407
407
}
408
408
409
409
// If amount available is EQUAL to send amount no need to split
0 commit comments