Skip to content

Add validator to dispatch precompile#1042

Merged
sorpaas merged 3 commits intopolkadot-evm:masterfrom
boundless-forest:bear-update-dispatch
Apr 19, 2023
Merged

Add validator to dispatch precompile#1042
sorpaas merged 3 commits intopolkadot-evm:masterfrom
boundless-forest:bear-update-dispatch

Conversation

@boundless-forest
Copy link
Copy Markdown
Collaborator

I do not fully understand why we check the Pays and DispatchClass before dispatching. I guess it's to prevent spam payless dispatch, there seems no need to do that, some basic transaction fee was charged when you invoke the dispatch precompile transaction. But this block dispatch the Operational type call.

In addition, add a filter to before dispatch to support filtering some call according to different runtimes.

@boundless-forest boundless-forest changed the title Add filter to dispatch precompile Add validator to dispatch precompile Apr 19, 2023
@sorpaas sorpaas merged commit 8b10017 into polkadot-evm:master Apr 19, 2023
@boundless-forest boundless-forest deleted the bear-update-dispatch branch April 20, 2023 00:13
ashutoshvarma pushed a commit to AstarNetwork/frontier that referenced this pull request May 29, 2023
* Add dispatch filter

* Fix clippy

* Fix review
ashutoshvarma pushed a commit to AstarNetwork/frontier that referenced this pull request Jun 8, 2023
* Add dispatch filter

* Fix clippy

* Fix review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants