Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
vgantchev committed Jul 7, 2024
1 parent b8d2d03 commit 242da67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pallets/transaction-pause/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ use frame_support::assert_ok;
benchmarks! {

pause_transaction {
let origin = T::UpdateOrigin::try_successful_origin().unwrap();
let origin = T::SecurityOrigin::try_successful_origin().unwrap();
}: {
assert_ok!(crate::Pallet::<T>::pause_transaction(origin, b"Balances".to_vec(), b"transfer".to_vec()));
}

unpause_transaction {
let origin = T::UpdateOrigin::try_successful_origin().unwrap();
let origin = T::SecurityOrigin::try_successful_origin().unwrap();
crate::Pallet::<T>::pause_transaction(origin, b"Balances".to_vec(), b"transfer".to_vec())?;
let origin = T::UpdateOrigin::try_successful_origin().unwrap();
let origin = T::SecurityOrigin::try_successful_origin().unwrap();
}:{
assert_ok!(crate::Pallet::<T>::unpause_transaction(origin, b"Balances".to_vec(), b"transfer".to_vec()));
}
Expand Down

0 comments on commit 242da67

Please sign in to comment.