Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Krayt78 committed Nov 20, 2024
1 parent 95be647 commit 5f4095c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cumulus/pallets/session-benchmarking/src/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ mod benchmarks {
let caller: T::AccountId = whitelisted_caller();
frame_system::Pallet::<T>::inc_providers(&caller);
let keys = T::Keys::decode(&mut sp_runtime::traits::TrailingZeroInput::zeroes()).unwrap();
let proof: Vec<u8> = vec![0,1,2,3];
let proof: Vec<u8> = vec![0, 1, 2, 3];

#[extrinsic_call]
_(RawOrigin::Signed(caller), keys, proof);
Expand All @@ -47,12 +47,16 @@ mod benchmarks {
let caller: T::AccountId = whitelisted_caller();
frame_system::Pallet::<T>::inc_providers(&caller);
let keys = T::Keys::decode(&mut sp_runtime::traits::TrailingZeroInput::zeroes()).unwrap();
let proof: Vec<u8> = vec![0,1,2,3];
let _t = pallet_session::Pallet::<T>::set_keys(RawOrigin::Signed(caller.clone()).into(), keys, proof);
let proof: Vec<u8> = vec![0, 1, 2, 3];
let _t = pallet_session::Pallet::<T>::set_keys(
RawOrigin::Signed(caller.clone()).into(),
keys,
proof,
);

#[extrinsic_call]
_(RawOrigin::Signed(caller));

Ok(())
Ok(())
}
}

0 comments on commit 5f4095c

Please sign in to comment.