mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Better error for when origin filter prevent the call to be dispatched (#10134)
* better error * Apply suggestions from code review Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * remove unused * fix error * fmt * fix tests * fmt * Update frame/contracts/src/exec.rs Co-authored-by: Alexander Theißen <alex.theissen@me.com> * fix typo Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
committed by
GitHub
parent
977cf450b3
commit
20c9afcdc1
@@ -846,7 +846,7 @@ fn multisig_filters() {
|
||||
let call = Box::new(Call::System(frame_system::Call::set_code { code: vec![] }));
|
||||
assert_noop!(
|
||||
Multisig::as_multi_threshold_1(Origin::signed(1), vec![2], call.clone()),
|
||||
DispatchError::BadOrigin,
|
||||
DispatchError::from(frame_system::Error::<Test>::CallFiltered),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user