mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Weights for Indices Pallet (#6282)
* fix multisig benchmarking * add indices benchmarks * fix compile * Weights for indices
This commit is contained in:
@@ -104,6 +104,8 @@ impl Filter<Call> for TestIsCallable {
|
||||
fn filter(c: &Call) -> bool {
|
||||
match *c {
|
||||
Call::Balances(_) => true,
|
||||
// Needed for benchmarking
|
||||
Call::System(frame_system::Call::remark(_)) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
@@ -399,7 +401,7 @@ fn multisig_1_of_3_works() {
|
||||
#[test]
|
||||
fn multisig_filters() {
|
||||
new_test_ext().execute_with(|| {
|
||||
let call = Box::new(Call::System(frame_system::Call::remark(vec![])));
|
||||
let call = Box::new(Call::System(frame_system::Call::set_code(vec![])));
|
||||
assert_noop!(
|
||||
Multisig::as_multi(Origin::signed(1), 1, vec![], None, call.clone()),
|
||||
Error::<Test>::Uncallable,
|
||||
|
||||
Reference in New Issue
Block a user