@@ -125,9 +125,9 @@ fn check_vesting_status_for_multi_schedule_account() {
125
125
assert_eq ! ( Balances :: balance_on_hold( & MockRuntimeHoldReason :: Reason , & 2 ) , 20 * ED ) ;
126
126
assert_ok ! ( Vesting :: vested_transfer( Some ( 4 ) . into( ) , 2 , sched1, MockRuntimeHoldReason :: Reason ) ) ;
127
127
assert_eq ! ( Balances :: balance_on_hold( & MockRuntimeHoldReason :: Reason , & 2 ) , 29 * ED ) ; // Why 29 and not 30? Because sched1 is already unlocking.
128
- // Free balance is the one set in Genesis inside the Balances pallet
129
- // + the one from the vested transfer.
130
- // BUT NOT the one in sched0, since the vesting will start at block #10.
128
+ // Free balance is the one set in Genesis inside the Balances pallet
129
+ // + the one from the vested transfer.
130
+ // BUT NOT the one in sched0, since the vesting will start at block #10.
131
131
let balance = Balances :: balance ( & 2 ) ;
132
132
assert_eq ! ( balance, ED * ( 2 ) ) ;
133
133
// The most recently added schedule exists.
@@ -193,7 +193,7 @@ fn unvested_balance_should_not_transfer() {
193
193
ExtBuilder :: default ( ) . existential_deposit ( 10 ) . build ( ) . execute_with ( || {
194
194
let user1_free_balance = Balances :: free_balance ( 1 ) ;
195
195
assert_eq ! ( user1_free_balance, 50 ) ; // Account 1 has free balance
196
- // Account 1 has only 5 units vested at block 1 (plus 50 unvested)
196
+ // Account 1 has only 5 units vested at block 1 (plus 50 unvested)
197
197
assert_eq ! ( Vesting :: vesting_balance( & 1 , MockRuntimeHoldReason :: Reason ) , Some ( 5 ) ) ; // Account 1 cannot send more than vested amount...
198
198
assert_noop ! ( Balances :: transfer_allow_death( Some ( 1 ) . into( ) , 2 , 56 ) , TokenError :: FundsUnavailable ) ;
199
199
} ) ;
@@ -205,13 +205,13 @@ fn vested_balance_should_transfer() {
205
205
assert_eq ! ( System :: block_number( ) , 1 ) ;
206
206
let user1_free_balance = Balances :: free_balance ( 1 ) ;
207
207
assert_eq ! ( user1_free_balance, 50 ) ; // Account 1 has free balance
208
- // Account 1 has only 5 units vested at block 1 (plus 50 unvested)
208
+ // Account 1 has only 5 units vested at block 1 (plus 50 unvested)
209
209
assert_eq ! ( Vesting :: vesting_balance( & 1 , MockRuntimeHoldReason :: Reason ) , Some ( 5 ) ) ;
210
210
assert_noop ! ( Balances :: transfer_allow_death( Some ( 1 ) . into( ) , 2 , 45 ) , TokenError :: Frozen ) ; // Account 1 free balance - ED is < 45
211
211
assert_ok ! ( Vesting :: vest( Some ( 1 ) . into( ) , MockRuntimeHoldReason :: Reason ) ) ;
212
212
let user1_free_balance = Balances :: free_balance ( 1 ) ;
213
213
assert_eq ! ( user1_free_balance, 55 ) ; // Account 1 has free balance
214
- // Account 1 has vested 1 unit at block 1 (plus 50 unvested)
214
+ // Account 1 has vested 1 unit at block 1 (plus 50 unvested)
215
215
assert_ok ! ( Balances :: transfer_allow_death( Some ( 1 ) . into( ) , 2 , 45 ) ) ; // After the vest it can now send the 45 UNIT
216
216
} ) ;
217
217
}
@@ -259,7 +259,7 @@ fn vested_balance_should_transfer_using_vest_other() {
259
259
ExtBuilder :: default ( ) . existential_deposit ( 10 ) . build ( ) . execute_with ( || {
260
260
let user1_free_balance = Balances :: free_balance ( 1 ) ;
261
261
assert_eq ! ( user1_free_balance, 50 ) ; // Account 1 has free balance
262
- // Account 1 has only 5 units vested at block 1 (plus 50 unvested)
262
+ // Account 1 has only 5 units vested at block 1 (plus 50 unvested)
263
263
assert_eq ! ( Vesting :: vesting_balance( & 1 , MockRuntimeHoldReason :: Reason ) , Some ( 5 ) ) ;
264
264
assert_ok ! ( Vesting :: vest_other( Some ( 2 ) . into( ) , 1 , MockRuntimeHoldReason :: Reason ) ) ;
265
265
assert_ok ! ( Balances :: transfer_allow_death( Some ( 1 ) . into( ) , 2 , 55 - 10 ) ) ;
@@ -317,7 +317,7 @@ fn extra_balance_should_transfer() {
317
317
318
318
// Account 2 has no units vested at block 1, but gained 100
319
319
assert_ok ! ( Balances :: transfer_allow_death( Some ( 2 ) . into( ) , 3 , 100 - 10 ) ) ; // Account 2 can send extra
320
- // units gained
320
+ // units gained
321
321
} ) ;
322
322
}
323
323
@@ -327,7 +327,7 @@ fn liquid_funds_should_transfer_with_delayed_vesting() {
327
327
let user12_free_balance = Balances :: free_balance ( 12 ) ;
328
328
329
329
assert_eq ! ( user12_free_balance, 1280 ) ; // Account 12 has free balance
330
- // Account 12 has liquid funds
330
+ // Account 12 has liquid funds
331
331
assert_eq ! ( Vesting :: vesting_balance( & 12 , MockRuntimeHoldReason :: Reason ) , Some ( 0 ) ) ;
332
332
333
333
// Account 12 has delayed vesting
0 commit comments