@@ -3935,17 +3935,17 @@ fn lock_then_transfer(#[case] seed: Seed) {
3935
3935
scan_wallet ( & mut wallet, BlockHeight :: new ( 1 ) , vec ! [ block2] ) ;
3936
3936
3937
3937
// check balance
3938
- let balance_without_locked_transer =
3938
+ let balance_without_locked_transfer =
3939
3939
( ( block1_amount * 2 ) . unwrap ( ) - amount_to_lock_then_transfer) . unwrap ( ) ;
3940
3940
3941
3941
let coin_balance = get_coin_balance ( & wallet) ;
3942
- assert_eq ! ( coin_balance, balance_without_locked_transer ) ;
3942
+ assert_eq ! ( coin_balance, balance_without_locked_transfer ) ;
3943
3943
3944
3944
// check that for block_count_lock, the amount is not included
3945
3945
for idx in 0 ..block_count_lock {
3946
3946
let coin_balance = get_coin_balance ( & wallet) ;
3947
3947
// check that the amount is still not unlocked
3948
- assert_eq ! ( coin_balance, balance_without_locked_transer ) ;
3948
+ assert_eq ! ( coin_balance, balance_without_locked_transfer ) ;
3949
3949
3950
3950
let currency_balances = wallet
3951
3951
. get_balance (
@@ -3978,7 +3978,7 @@ fn lock_then_transfer(#[case] seed: Seed) {
3978
3978
let coin_balance = get_coin_balance ( & wallet) ;
3979
3979
assert_eq ! (
3980
3980
coin_balance,
3981
- ( balance_without_locked_transer + amount_to_lock_then_transfer) . unwrap( )
3981
+ ( balance_without_locked_transfer + amount_to_lock_then_transfer) . unwrap( )
3982
3982
) ;
3983
3983
}
3984
3984
@@ -4327,15 +4327,15 @@ fn wallet_abandone_transactions(#[case] seed: Seed) {
4327
4327
4328
4328
assert_eq ! ( abandonable_transactions. len( ) , transactions. len( ) ) ;
4329
4329
4330
- let txs_to_abandone = rng. gen_range ( 0 ..total_num_transactions) as usize ;
4331
- let ( txs_to_keep, txs_to_abandone ) = transactions. split_at ( txs_to_abandone ) ;
4330
+ let txs_to_abandon = rng. gen_range ( 0 ..total_num_transactions) as usize ;
4331
+ let ( txs_to_keep, txs_to_abandon ) = transactions. split_at ( txs_to_abandon ) ;
4332
4332
4333
- assert ! ( !txs_to_abandone . is_empty( ) ) ;
4333
+ assert ! ( !txs_to_abandon . is_empty( ) ) ;
4334
4334
4335
- let transaction_id = txs_to_abandone . first ( ) . unwrap ( ) . 0 . transaction ( ) . get_id ( ) ;
4335
+ let transaction_id = txs_to_abandon . first ( ) . unwrap ( ) . 0 . transaction ( ) . get_id ( ) ;
4336
4336
wallet. abandon_transaction ( DEFAULT_ACCOUNT_INDEX , transaction_id) . unwrap ( ) ;
4337
4337
4338
- let coins_after_abandon = txs_to_abandone . first ( ) . unwrap ( ) . 1 ;
4338
+ let coins_after_abandon = txs_to_abandon . first ( ) . unwrap ( ) . 1 ;
4339
4339
4340
4340
let coin_balance = get_coin_balance_with_inactive ( & wallet) ;
4341
4341
assert_eq ! ( coin_balance, coins_after_abandon) ;
@@ -4345,7 +4345,7 @@ fn wallet_abandone_transactions(#[case] seed: Seed) {
4345
4345
let coin_balance = get_coin_balance_with_inactive ( & wallet) ;
4346
4346
assert_eq ! ( coin_balance, coins_after_abandon) ;
4347
4347
4348
- // Abandone the same tx again
4348
+ // Abandon the same tx again
4349
4349
let result = wallet. abandon_transaction ( DEFAULT_ACCOUNT_INDEX , transaction_id) ;
4350
4350
assert_eq ! (
4351
4351
result. unwrap_err( ) ,
@@ -6728,7 +6728,7 @@ fn conflicting_delegation_account_nonce(#[case] seed: Seed) {
6728
6728
)
6729
6729
) ;
6730
6730
6731
- // Abandone conflicting txs
6731
+ // Abandon conflicting txs
6732
6732
wallet
6733
6733
. abandon_transaction ( DEFAULT_ACCOUNT_INDEX , spend_from_delegation_tx_1_id)
6734
6734
. unwrap ( ) ;
@@ -6991,9 +6991,9 @@ fn conflicting_delegation_account_nonce_same_tx(#[case] seed: Seed) {
6991
6991
) ;
6992
6992
}
6993
6993
6994
- // Issue and mint some tokens
6995
- // Create an order selling tokens for coins
6996
- // Create 2 fill order txs and add them to a wallet as unconfirmed
6994
+ // Issue and mint some tokens.
6995
+ // Create an order selling tokens for coins.
6996
+ // Create 2 fill order txs and add them to a wallet as unconfirmed.
6997
6997
// Confirm the first tx in a block and check that it is accounted in confirmed balance
6998
6998
// and also that unconfirmed balance has second tx.
6999
6999
#[ rstest]
@@ -7126,7 +7126,7 @@ fn conflicting_order_account_nonce(#[case] seed: Seed) {
7126
7126
} ;
7127
7127
7128
7128
let spend_coins_1 = Amount :: from_atoms ( 10 ) ;
7129
- let recieved_tokens_1 = spend_coins_1;
7129
+ let received_tokens_1 = spend_coins_1;
7130
7130
let fill_order_tx_1 = wallet
7131
7131
. create_fill_order_tx (
7132
7132
DEFAULT_ACCOUNT_INDEX ,
@@ -7163,7 +7163,7 @@ fn conflicting_order_account_nonce(#[case] seed: Seed) {
7163
7163
} ;
7164
7164
7165
7165
let spend_coins_2 = Amount :: from_atoms ( 3 ) ;
7166
- let recieved_tokens_2 = spend_coins_2;
7166
+ let received_tokens_2 = spend_coins_2;
7167
7167
let fill_order_tx_2 = wallet
7168
7168
. create_fill_order_tx (
7169
7169
DEFAULT_ACCOUNT_INDEX ,
@@ -7237,7 +7237,7 @@ fn conflicting_order_account_nonce(#[case] seed: Seed) {
7237
7237
UtxoState :: Confirmed . into ( ) ,
7238
7238
WithLocked :: Any ,
7239
7239
) ;
7240
- assert_eq ! ( token_balance_confirmed, recieved_tokens_1 ) ;
7240
+ assert_eq ! ( token_balance_confirmed, received_tokens_1 ) ;
7241
7241
7242
7242
let token_balance_unconfirmed = get_balance_with (
7243
7243
& wallet,
@@ -7247,6 +7247,6 @@ fn conflicting_order_account_nonce(#[case] seed: Seed) {
7247
7247
) ;
7248
7248
assert_eq ! (
7249
7249
token_balance_unconfirmed,
7250
- ( recieved_tokens_1 + recieved_tokens_2 ) . unwrap( )
7250
+ ( received_tokens_1 + received_tokens_2 ) . unwrap( )
7251
7251
) ;
7252
7252
}
0 commit comments