From 597f7486216b5a8c3519a0cebe389c749654bdb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Andr=C3=A9s=20Dorado=20Su=C3=A1rez?= Date: Thu, 31 Oct 2024 16:11:42 -0500 Subject: [PATCH] fix(system-parachains/bridge-hub-polkadot): make ci happy --- .../bridge-hub-polkadot/tests/snowbridge.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/system-parachains/bridge-hubs/bridge-hub-polkadot/tests/snowbridge.rs b/system-parachains/bridge-hubs/bridge-hub-polkadot/tests/snowbridge.rs index b942dd0597..b05af5def3 100644 --- a/system-parachains/bridge-hubs/bridge-hub-polkadot/tests/snowbridge.rs +++ b/system-parachains/bridge-hubs/bridge-hub-polkadot/tests/snowbridge.rs @@ -291,15 +291,15 @@ pub fn ethereum_extrinsic( 10_000_000_000_000_u128.saturated_into::>(), ) .unwrap(); - let balance_before = - >::free_balance(alice_account.clone().into()); + let alice_account: ::AccountId = alice_account.into(); + let balance_before = >::free_balance(&alice_account); assert_ok!(>::force_checkpoint( RuntimeHelper::::root_origin(), initial_checkpoint.clone(), )); let balance_after_checkpoint = - >::free_balance(alice_account.clone().into()); + >::free_balance(&alice_account); let update_call: ::RuntimeCall = snowbridge_pallet_ethereum_client::Call::::submit { @@ -329,7 +329,7 @@ pub fn ethereum_extrinsic( let update_outcome = construct_and_apply_extrinsic(alice, update_call.into()); assert_ok!(update_outcome); let balance_after_update = - >::free_balance(alice_account.clone().into()); + >::free_balance(&alice_account); // All the extrinsics in this test do no fit into 1 block let _ = RuntimeHelper::::run_to_block(2, AccountId::from(alice).into()); @@ -342,14 +342,14 @@ pub fn ethereum_extrinsic( snowbridge_pallet_ethereum_client::Error::::InvalidUpdateSlot ); let balance_after_invalid_update = - >::free_balance(alice_account.clone().into()); + >::free_balance(&alice_account); // Sync committee update let sync_committee_outcome = construct_and_apply_extrinsic(alice, update_sync_committee_call.into()); assert_ok!(sync_committee_outcome); let balance_after_sync_com_update = - >::free_balance(alice_account.clone().into()); + >::free_balance(&alice_account); // Invalid sync committee update let invalid_sync_committee_outcome = @@ -359,7 +359,7 @@ pub fn ethereum_extrinsic( snowbridge_pallet_ethereum_client::Error::::InvalidUpdateSlot ); let balance_after_invalid_sync_com_update = - >::free_balance(alice_account.clone().into()); + >::free_balance(&alice_account); // Assert paid operations are charged and free operations are free // Checkpoint is a free operation