@@ -3481,17 +3481,17 @@ fn lock_then_transfer(#[case] seed: Seed) {
3481
3481
scan_wallet ( & mut wallet, BlockHeight :: new ( 1 ) , vec ! [ block2] ) ;
3482
3482
3483
3483
// check balance
3484
- let balance_without_locked_transer =
3484
+ let balance_without_locked_transfer =
3485
3485
( ( block1_amount * 2 ) . unwrap ( ) - amount_to_lock_then_transfer) . unwrap ( ) ;
3486
3486
3487
3487
let coin_balance = get_coin_balance ( & wallet) ;
3488
- assert_eq ! ( coin_balance, balance_without_locked_transer ) ;
3488
+ assert_eq ! ( coin_balance, balance_without_locked_transfer ) ;
3489
3489
3490
3490
// check that for block_count_lock, the amount is not included
3491
3491
for idx in 0 ..block_count_lock {
3492
3492
let coin_balance = get_coin_balance ( & wallet) ;
3493
3493
// check that the amount is still not unlocked
3494
- assert_eq ! ( coin_balance, balance_without_locked_transer ) ;
3494
+ assert_eq ! ( coin_balance, balance_without_locked_transfer ) ;
3495
3495
3496
3496
let currency_balances = wallet
3497
3497
. get_balance (
@@ -3524,7 +3524,7 @@ fn lock_then_transfer(#[case] seed: Seed) {
3524
3524
let coin_balance = get_coin_balance ( & wallet) ;
3525
3525
assert_eq ! (
3526
3526
coin_balance,
3527
- ( balance_without_locked_transer + amount_to_lock_then_transfer) . unwrap( )
3527
+ ( balance_without_locked_transfer + amount_to_lock_then_transfer) . unwrap( )
3528
3528
) ;
3529
3529
}
3530
3530
@@ -3882,15 +3882,15 @@ fn wallet_abandone_transactions(#[case] seed: Seed) {
3882
3882
3883
3883
assert_eq ! ( abandonable_transactions. len( ) , transactions. len( ) ) ;
3884
3884
3885
- let txs_to_abandone = rng. gen_range ( 0 ..total_num_transactions) as usize ;
3886
- let ( txs_to_keep, txs_to_abandone ) = transactions. split_at ( txs_to_abandone ) ;
3885
+ let txs_to_abandon = rng. gen_range ( 0 ..total_num_transactions) as usize ;
3886
+ let ( txs_to_keep, txs_to_abandon ) = transactions. split_at ( txs_to_abandon ) ;
3887
3887
3888
- assert ! ( !txs_to_abandone . is_empty( ) ) ;
3888
+ assert ! ( !txs_to_abandon . is_empty( ) ) ;
3889
3889
3890
- let transaction_id = txs_to_abandone . first ( ) . unwrap ( ) . 0 . transaction ( ) . get_id ( ) ;
3890
+ let transaction_id = txs_to_abandon . first ( ) . unwrap ( ) . 0 . transaction ( ) . get_id ( ) ;
3891
3891
wallet. abandon_transaction ( DEFAULT_ACCOUNT_INDEX , transaction_id) . unwrap ( ) ;
3892
3892
3893
- let coins_after_abandon = txs_to_abandone . first ( ) . unwrap ( ) . 1 ;
3893
+ let coins_after_abandon = txs_to_abandon . first ( ) . unwrap ( ) . 1 ;
3894
3894
3895
3895
let coin_balance = get_coin_balance_with_inactive ( & wallet) ;
3896
3896
assert_eq ! ( coin_balance, coins_after_abandon) ;
@@ -3900,7 +3900,7 @@ fn wallet_abandone_transactions(#[case] seed: Seed) {
3900
3900
let coin_balance = get_coin_balance_with_inactive ( & wallet) ;
3901
3901
assert_eq ! ( coin_balance, coins_after_abandon) ;
3902
3902
3903
- // Abandone the same tx again
3903
+ // Abandon the same tx again
3904
3904
let result = wallet. abandon_transaction ( DEFAULT_ACCOUNT_INDEX , transaction_id) ;
3905
3905
assert_eq ! (
3906
3906
result. unwrap_err( ) ,
@@ -6195,7 +6195,7 @@ fn conflicting_delegation_account_nonce(#[case] seed: Seed) {
6195
6195
)
6196
6196
) ;
6197
6197
6198
- // Abandone conflicting txs
6198
+ // Abandon conflicting txs
6199
6199
wallet
6200
6200
. abandon_transaction ( DEFAULT_ACCOUNT_INDEX , spend_from_delegation_tx_1_id)
6201
6201
. unwrap ( ) ;
@@ -6455,9 +6455,9 @@ fn conflicting_delegation_account_nonce_same_tx(#[case] seed: Seed) {
6455
6455
) ;
6456
6456
}
6457
6457
6458
- // Issue and mint some tokens
6459
- // Create an order selling tokens for coins
6460
- // Create 2 fill order txs and add them to a wallet as unconfirmed
6458
+ // Issue and mint some tokens.
6459
+ // Create an order selling tokens for coins.
6460
+ // Create 2 fill order txs and add them to a wallet as unconfirmed.
6461
6461
// Confirm the first tx in a block and check that it is accounted in confirmed balance
6462
6462
// and also that unconfirmed balance has second tx.
6463
6463
#[ rstest]
@@ -6589,7 +6589,7 @@ fn conflicting_order_account_nonce(#[case] seed: Seed) {
6589
6589
} ;
6590
6590
6591
6591
let spend_coins_1 = Amount :: from_atoms ( 10 ) ;
6592
- let recieved_tokens_1 = spend_coins_1;
6592
+ let received_tokens_1 = spend_coins_1;
6593
6593
let fill_order_tx_1 = wallet
6594
6594
. create_fill_order_tx (
6595
6595
DEFAULT_ACCOUNT_INDEX ,
@@ -6625,7 +6625,7 @@ fn conflicting_order_account_nonce(#[case] seed: Seed) {
6625
6625
} ;
6626
6626
6627
6627
let spend_coins_2 = Amount :: from_atoms ( 3 ) ;
6628
- let recieved_tokens_2 = spend_coins_2;
6628
+ let received_tokens_2 = spend_coins_2;
6629
6629
let fill_order_tx_2 = wallet
6630
6630
. create_fill_order_tx (
6631
6631
DEFAULT_ACCOUNT_INDEX ,
@@ -6698,7 +6698,7 @@ fn conflicting_order_account_nonce(#[case] seed: Seed) {
6698
6698
UtxoState :: Confirmed . into ( ) ,
6699
6699
WithLocked :: Any ,
6700
6700
) ;
6701
- assert_eq ! ( token_balance_confirmed, recieved_tokens_1 ) ;
6701
+ assert_eq ! ( token_balance_confirmed, received_tokens_1 ) ;
6702
6702
6703
6703
let token_balance_unconfirmed = get_balance_with (
6704
6704
& wallet,
@@ -6708,6 +6708,6 @@ fn conflicting_order_account_nonce(#[case] seed: Seed) {
6708
6708
) ;
6709
6709
assert_eq ! (
6710
6710
token_balance_unconfirmed,
6711
- ( recieved_tokens_1 + recieved_tokens_2 ) . unwrap( )
6711
+ ( received_tokens_1 + received_tokens_2 ) . unwrap( )
6712
6712
) ;
6713
6713
}
0 commit comments