mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 22:11:06 +00:00
frame_system::remark: Allow any kind of origin (#14260)
* frame_system::remark: Allow any kind of origin There should be no downside in allowing any kind of origin for `remark`. * Fix tests
This commit is contained in:
@@ -131,7 +131,7 @@ benchmarks_instance_pallet! {
|
||||
let proposal_hash = T::Hashing::hash_of(&proposal);
|
||||
// Note that execution fails due to mis-matched origin
|
||||
assert_last_event::<T, I>(
|
||||
Event::MemberExecuted { proposal_hash, result: Err(DispatchError::BadOrigin) }.into()
|
||||
Event::MemberExecuted { proposal_hash, result: Ok(()) }.into()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ benchmarks_instance_pallet! {
|
||||
let proposal_hash = T::Hashing::hash_of(&proposal);
|
||||
// Note that execution fails due to mis-matched origin
|
||||
assert_last_event::<T, I>(
|
||||
Event::Executed { proposal_hash, result: Err(DispatchError::BadOrigin) }.into()
|
||||
Event::Executed { proposal_hash, result: Ok(()) }.into()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -441,7 +441,7 @@ benchmarks_instance_pallet! {
|
||||
verify {
|
||||
// The last proposal is removed.
|
||||
assert_eq!(Collective::<T, I>::proposals().len(), (p - 1) as usize);
|
||||
assert_last_event::<T, I>(Event::Executed { proposal_hash: last_hash, result: Err(DispatchError::BadOrigin) }.into());
|
||||
assert_last_event::<T, I>(Event::Executed { proposal_hash: last_hash, result: Ok(()) }.into());
|
||||
}
|
||||
|
||||
close_disapproved {
|
||||
@@ -595,7 +595,7 @@ benchmarks_instance_pallet! {
|
||||
}: close(SystemOrigin::Signed(caller), last_hash, p - 1, Weight::MAX, bytes_in_storage)
|
||||
verify {
|
||||
assert_eq!(Collective::<T, I>::proposals().len(), (p - 1) as usize);
|
||||
assert_last_event::<T, I>(Event::Executed { proposal_hash: last_hash, result: Err(DispatchError::BadOrigin) }.into());
|
||||
assert_last_event::<T, I>(Event::Executed { proposal_hash: last_hash, result: Ok(()) }.into());
|
||||
}
|
||||
|
||||
disapprove_proposal {
|
||||
|
||||
Reference in New Issue
Block a user