substrate icon indicating copy to clipboard operation
substrate copied to clipboard

Adding CallFilter to pallet-utility.

Open bugrazoid opened this issue 1 year ago • 4 comments

Description

Adding CallFilter to pallet-utility.

Motivation

The current form of the pallet uses frame_system::Config::BaseCallFilter, which does not allow to disable calls that should not be used in this particular pallet.

Behavior

This PR adds call filtering at the pallet level. Filtering rules are similar to frame_system::Config::BaseCallFilter:

-- Polkadot companion: https://github.com/paritytech/polkadot/pull/6827 Cumulus companion: https://github.com/paritytech/cumulus/pull/2283

bugrazoid avatar Mar 03 '23 09:03 bugrazoid

User @bugrazoid, please sign the CLA here.

cla-bot-2021[bot] avatar Mar 03 '23 09:03 cla-bot-2021[bot]

Can you provide some context on why this is required?

xlc avatar Mar 03 '23 10:03 xlc

Can you provide some context on why this is required?

Similar functionality is already provided in the utility pallet itself: the batch extrinsic can't batch other batches. It looks reasonable to provide means to prevent other calls from executing in batch, e.g., when a parachain has some other means for batching like Ethereum contracts.

bugrazoid avatar Mar 03 '23 12:03 bugrazoid

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '23 14:04 stale[bot]

The CI pipeline was cancelled due to failure one of the required jobs. Job name: cargo-check-benches Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2767975

paritytech-cicd-pr avatar May 03 '23 07:05 paritytech-cicd-pr

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 21 '23 10:06 stale[bot]

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 27 '23 11:07 stale[bot]