From 5a0fef5686329ea1c7658e1e9b9d0a8b94b93c03 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Mon, 18 Dec 2023 08:09:41 -0700 Subject: [PATCH] fix: rename symbol for readability --- pallets/capacity/src/migration/v3.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ); }) }