Skip to content

Commit

Permalink
fix benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
AlastairHolmes committed Oct 11, 2023
1 parent 942fd22 commit f01b83b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions state-chain/pallets/cf-pools/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ fn new_lp_account<T: Chainflip>() -> T::AccountId {
let caller: T::AccountId = whitelisted_caller();
<T as frame_system::Config>::OnNewAccount::on_new_account(&caller);
T::AccountRoleRegistry::register_as_liquidity_provider(&caller).unwrap();

for encoded_address in [
EncodedAddress::Eth(Default::default()),
EncodedAddress::Dot(Default::default()),
EncodedAddress::Btc("bcrt1qs758ursh4q9z627kt3pp5yysm78ddny6txaqgw".as_bytes().to_vec()),
] {
LiquidityProvider::register_liquidity_refund_address(
RuntimeOrigin::signed(caller.clone()),
encoded_address
).unwrap();
}

caller
}

Expand Down

0 comments on commit f01b83b

Please sign in to comment.