diff --git a/pallets/capacity/src/migration/v3.rs b/pallets/capacity/src/migration/v3.rs index 18ad5bf5e1..65f0d6cdb1 100644 --- a/pallets/capacity/src/migration/v3.rs +++ b/pallets/capacity/src/migration/v3.rs @@ -159,22 +159,22 @@ mod test { // Create some data in the old format // Grab an account with a balance let account = 200; - let amount = 50; + let locked_amount = 50; pallet_balances::Pallet::::set_lock( STAKING_ID, &account, - amount, + locked_amount, WithdrawReasons::all(), ); // Confirm lock exists assert_eq!( pallet_balances::Pallet::::locks(&account).get(0), - Some(&BalanceLock { id: STAKING_ID, amount: 50u64, reasons: Reasons::All }) + Some(&BalanceLock { id: STAKING_ID, amount: locked_amount, reasons: Reasons::All }) ); let test_record = - StakingDetails:: { active: amount, staking_type: MaximumCapacity }; + StakingDetails:: { active: locked_amount, staking_type: MaximumCapacity }; StakingAccountLedger::::insert(account, test_record); assert_eq!(StakingAccountLedger::::iter().count(), 1); @@ -187,7 +187,7 @@ mod test { assert_eq!(pallet_balances::Pallet::::locks(&account), vec![]); assert_eq!( ::Currency::balance_frozen(&FreezeReason::Staked.into(), &account), - 50u64 + locked_amount ); }) }