diff --git a/runtime/astar/src/lib.rs b/runtime/astar/src/lib.rs index e8965f0361..2470d17d16 100644 --- a/runtime/astar/src/lib.rs +++ b/runtime/astar/src/lib.rs @@ -1469,7 +1469,8 @@ impl InstanceFilter for CommunityCouncilCallFilter { c, RuntimeCall::DappStaking(..) | RuntimeCall::System(frame_system::Call::remark { .. }) - | RuntimeCall::Utility(..) + | RuntimeCall::Utility(pallet_utility::Call::batch { .. }) + | RuntimeCall::Utility(pallet_utility::Call::batch_all { .. }) ) } } diff --git a/runtime/astar/src/precompiles.rs b/runtime/astar/src/precompiles.rs index c2d85d0010..6ee6e13912 100644 --- a/runtime/astar/src/precompiles.rs +++ b/runtime/astar/src/precompiles.rs @@ -63,6 +63,11 @@ impl Contains for WhitelistedCalls { RuntimeCall::Assets(pallet_assets::Call::transfer { .. }) => true, RuntimeCall::XTokens(orml_xtokens::Call::transfer_multiasset_with_fee { .. }) => true, RuntimeCall::XTokens(orml_xtokens::Call::transfer_multiasset { .. }) => true, + // Governance related calls + RuntimeCall::Democracy(_) + | RuntimeCall::Treasury(_) + | RuntimeCall::CommunityTreasury(_) + | RuntimeCall::Preimage(_) => true, _ => false, } } diff --git a/runtime/local/src/lib.rs b/runtime/local/src/lib.rs index 185347545e..650698f91a 100644 --- a/runtime/local/src/lib.rs +++ b/runtime/local/src/lib.rs @@ -1112,7 +1112,8 @@ impl InstanceFilter for CommunityCouncilCallFilter { c, RuntimeCall::DappStaking(..) | RuntimeCall::System(frame_system::Call::remark { .. }) - | RuntimeCall::Utility(..) + | RuntimeCall::Utility(pallet_utility::Call::batch { .. }) + | RuntimeCall::Utility(pallet_utility::Call::batch_all { .. }) ) } } diff --git a/runtime/local/src/precompiles.rs b/runtime/local/src/precompiles.rs index 0daf444b5f..8a29d1ab7e 100644 --- a/runtime/local/src/precompiles.rs +++ b/runtime/local/src/precompiles.rs @@ -61,6 +61,10 @@ impl Contains for WhitelistedCalls { } RuntimeCall::DappStaking(_) => true, RuntimeCall::Assets(pallet_assets::Call::transfer { .. }) => true, + RuntimeCall::Democracy(_) + | RuntimeCall::Treasury(_) + | RuntimeCall::CommunityTreasury(_) + | RuntimeCall::Preimage(_) => true, _ => false, } } diff --git a/runtime/shibuya/src/lib.rs b/runtime/shibuya/src/lib.rs index ada15891dd..39829378ad 100644 --- a/runtime/shibuya/src/lib.rs +++ b/runtime/shibuya/src/lib.rs @@ -1501,7 +1501,8 @@ impl InstanceFilter for CommunityCouncilCallFilter { c, RuntimeCall::DappStaking(..) | RuntimeCall::System(frame_system::Call::remark { .. }) - | RuntimeCall::Utility(..) + | RuntimeCall::Utility(pallet_utility::Call::batch { .. }) + | RuntimeCall::Utility(pallet_utility::Call::batch_all { .. }) ) } } diff --git a/runtime/shibuya/src/precompiles.rs b/runtime/shibuya/src/precompiles.rs index 642e7e491c..19a4133219 100644 --- a/runtime/shibuya/src/precompiles.rs +++ b/runtime/shibuya/src/precompiles.rs @@ -64,6 +64,11 @@ impl Contains for WhitelistedCalls { RuntimeCall::Assets(pallet_assets::Call::transfer { .. }) => true, RuntimeCall::XTokens(orml_xtokens::Call::transfer_multiasset_with_fee { .. }) => true, RuntimeCall::XTokens(orml_xtokens::Call::transfer_multiasset { .. }) => true, + // Governance related calls + RuntimeCall::Democracy(_) + | RuntimeCall::Treasury(_) + | RuntimeCall::CommunityTreasury(_) + | RuntimeCall::Preimage(_) => true, _ => false, } }