File tree 8 files changed +22
-25
lines changed
8 files changed +22
-25
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " spaced"
3
- version = " 0.0.2 "
3
+ version = " 0.0.4 "
4
4
edition = " 2021"
5
5
6
6
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ impl SpaceCli {
288
288
fee_rate,
289
289
dust : self . dust ,
290
290
force : self . force ,
291
- confirmed_only
291
+ confirmed_only,
292
292
} ,
293
293
)
294
294
. await ?;
@@ -444,15 +444,15 @@ async fn handle_commands(
444
444
} ) ) ,
445
445
None ,
446
446
fee_rate,
447
- false
447
+ false ,
448
448
)
449
449
. await ?
450
450
}
451
451
Commands :: Bid {
452
452
space,
453
453
amount,
454
454
fee_rate,
455
- confirmed_only
455
+ confirmed_only,
456
456
} => {
457
457
cli. send_request (
458
458
Some ( RpcWalletRequest :: Bid ( BidParams {
@@ -461,7 +461,7 @@ async fn handle_commands(
461
461
} ) ) ,
462
462
None ,
463
463
fee_rate,
464
- confirmed_only
464
+ confirmed_only,
465
465
)
466
466
. await ?
467
467
}
@@ -480,7 +480,7 @@ async fn handle_commands(
480
480
} ) ) ,
481
481
None ,
482
482
fee_rate,
483
- false
483
+ false ,
484
484
)
485
485
. await ?
486
486
}
@@ -497,7 +497,7 @@ async fn handle_commands(
497
497
} ) ) ,
498
498
None ,
499
499
fee_rate,
500
- false
500
+ false ,
501
501
)
502
502
. await ?
503
503
}
@@ -513,7 +513,7 @@ async fn handle_commands(
513
513
} ) ) ,
514
514
None ,
515
515
fee_rate,
516
- false
516
+ false ,
517
517
)
518
518
. await ?
519
519
}
@@ -542,7 +542,7 @@ async fn handle_commands(
542
542
} ) ) ,
543
543
None ,
544
544
fee_rate,
545
- false
545
+ false ,
546
546
)
547
547
. await ?;
548
548
}
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " protocol"
3
- version = " 0.0.2 "
3
+ version = " 0.0.4 "
4
4
edition = " 2021"
5
5
6
6
[dependencies ]
Original file line number Diff line number Diff line change @@ -324,14 +324,8 @@ mod tests {
324
324
SLabel :: try_from( "@xn---" ) . is_err( ) ,
325
325
"Should not work with single hyphen punycode"
326
326
) ;
327
- assert ! (
328
- SLabel :: try_from( "@xn--1" ) . is_ok( ) ,
329
- "Should be okay"
330
- ) ;
331
- assert ! (
332
- SLabel :: try_from( "@0xn--1" ) . is_err( ) ,
333
- "Should not be okay"
334
- ) ;
327
+ assert ! ( SLabel :: try_from( "@xn--1" ) . is_ok( ) , "Should be okay" ) ;
328
+ assert ! ( SLabel :: try_from( "@0xn--1" ) . is_err( ) , "Should not be okay" ) ;
335
329
assert ! (
336
330
SLabel :: try_from( "@xn--123-pretty-valid-space-ok" ) . is_ok( ) ,
337
331
"Should work :("
@@ -353,7 +347,9 @@ mod tests {
353
347
) ;
354
348
355
349
assert_eq ! (
356
- SLabel :: try_from( b"\x14 xn--hello-world-1234-five-six-seven" ) . unwrap( ) . as_ref( ) ,
350
+ SLabel :: try_from( b"\x14 xn--hello-world-1234-five-six-seven" )
351
+ . unwrap( )
352
+ . as_ref( ) ,
357
353
b"\x14 xn--hello-world-1234" ,
358
354
"Should work"
359
355
) ;
Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ impl Validator {
478
478
changeset : & mut TxChangeSet ,
479
479
) {
480
480
let input = tx. input . get ( input_index as usize ) . expect ( "input" ) ;
481
- let mut spaceout = stxo. previous_output ;
481
+ let spaceout = stxo. previous_output ;
482
482
let space_ref = spaceout. space . as_ref ( ) . unwrap ( ) ;
483
483
// Handle bid spends
484
484
if space_ref. is_bid_spend ( tx. version , input) {
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " wallet"
3
- version = " 0.0.2 "
3
+ version = " 0.0.4 "
4
4
edition = " 2021"
5
5
6
6
[dependencies ]
Original file line number Diff line number Diff line change @@ -311,7 +311,8 @@ impl SpacesWallet {
311
311
// always prefer confirmed ones since
312
312
// we don't monitor mempool for other competing bids
313
313
// this makes replacements smoother
314
- . iter ( ) . find ( |x| x. confirmed )
314
+ . iter ( )
315
+ . find ( |x| x. confirmed )
315
316
. or_else ( || all. first ( ) )
316
317
. ok_or_else ( || anyhow:: anyhow!( "{}" , msg) ) ?
317
318
. clone ( ) ;
You can’t perform that action at this time.
0 commit comments