chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -107,7 +107,8 @@ pub mod pezpallet {
|
||||
pub trait Config: pezframe_system::Config {
|
||||
/// The overarching event type.
|
||||
#[allow(deprecated)]
|
||||
type RuntimeEvent: From<Event<Self>> + IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
|
||||
type RuntimeEvent: From<Event<Self>>
|
||||
+ IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
|
||||
|
||||
/// The overarching call type.
|
||||
type RuntimeCall: Parameter
|
||||
|
||||
@@ -47,8 +47,9 @@ fn can_pause_all_calls_in_pallet_except_on_whitelist() {
|
||||
new_test_ext().execute_with(|| {
|
||||
assert_ok!(call_transfer(1, 1).dispatch(RuntimeOrigin::signed(0)));
|
||||
|
||||
let batch_call =
|
||||
RuntimeCall::Utility(pezpallet_utility::Call::batch { calls: vec![call_transfer(1, 1)] });
|
||||
let batch_call = RuntimeCall::Utility(pezpallet_utility::Call::batch {
|
||||
calls: vec![call_transfer(1, 1)],
|
||||
});
|
||||
assert_ok!(batch_call.clone().dispatch(RuntimeOrigin::signed(0)));
|
||||
|
||||
assert_ok!(TxPause::pause(
|
||||
@@ -87,8 +88,9 @@ fn can_unpause_specific_call() {
|
||||
#[test]
|
||||
fn can_filter_balance_in_batch_when_paused() {
|
||||
new_test_ext().execute_with(|| {
|
||||
let batch_call =
|
||||
RuntimeCall::Utility(pezpallet_utility::Call::batch { calls: vec![call_transfer(1, 1)] });
|
||||
let batch_call = RuntimeCall::Utility(pezpallet_utility::Call::batch {
|
||||
calls: vec![call_transfer(1, 1)],
|
||||
});
|
||||
|
||||
assert_ok!(TxPause::pause(
|
||||
RuntimeOrigin::signed(mock::PauseOrigin::get()),
|
||||
@@ -146,8 +148,9 @@ fn fails_to_pause_unpausable_call_when_other_call_is_paused() {
|
||||
new_test_ext().execute_with(|| {
|
||||
assert_ok!(call_transfer(1, 1).dispatch(RuntimeOrigin::signed(0)));
|
||||
|
||||
let batch_call =
|
||||
RuntimeCall::Utility(pezpallet_utility::Call::batch { calls: vec![call_transfer(1, 1)] });
|
||||
let batch_call = RuntimeCall::Utility(pezpallet_utility::Call::batch {
|
||||
calls: vec![call_transfer(1, 1)],
|
||||
});
|
||||
assert_ok!(batch_call.clone().dispatch(RuntimeOrigin::signed(0)));
|
||||
|
||||
assert_ok!(TxPause::pause(
|
||||
|
||||
Reference in New Issue
Block a user