-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: dispatch precompile filter #1022
Conversation
runtime/astar/src/lib.rs
Outdated
impl InstanceFilter<RuntimeCall> for DispatchPrecompileFilter { | ||
fn filter(&self, c: &RuntimeCall) -> bool { | ||
match c { | ||
RuntimeCall::Utility(pallet_utility::Call::batch { calls }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also batch_all
.
traits::InstanceFilter, | ||
}; | ||
use pallet_evm_precompile_dispatch::DispatchValidateT; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add Rustdoc to public structs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation looks good to me. Some suggestions about code style and docs.
Minimum allowed line rate is |
Pull Request Summary
Add filter to disable non-whitelisted calls in dispatch precompile
Check list