fix: add permissioned EVM validation when gas is specified#122
fix: add permissioned EVM validation when gas is specified#122tac0turtle merged 6 commits intomainfrom
Conversation
…ce; add unit test; fix ChainSpec bound in pool builder
|
Claude finished @chatton's task —— View job Code Review for PR #122I've conducted a comprehensive review of this PR that fixes the permissioned EVM validation bug. Overall, this is a well-structured fix that addresses a critical security issue. Todo List:
✅ Positive Aspects
|
Summary of ChangesHello @chatton, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical bug in the permissioned EVM where contract deployment allowlist checks were inconsistently applied. Previously, these checks were bypassed when gas values were directly specified, creating a potential loophole. The changes centralize the allowlist validation logic into a dedicated function and integrate it across both the EVM execution handler and the transaction pool validator. This ensures that all contract creation attempts are now properly vetted against the configured allowlist, significantly enhancing the security and integrity of contract deployments within the EVM environment. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request addresses a bug where the deploy allowlist check was not consistently applied. The introduction of a centralized check_deploy_allowed function and its application in both transaction pool validation and execution is a solid approach. My review includes suggestions to improve code clarity, enhance error handling to prevent silent failures, and strengthen a test assertion. I also found a high-severity issue where failing to fetch the block number could lead to incorrect allowlist enforcement.
tac0turtle
left a comment
There was a problem hiding this comment.
look good, gemini and claude reviews have valid feedback. we should integrate
Description
The logic to check for allow list was only happening in the flow for gas estimation, and was not happening when a gas value was being directly applied.
This PR applies the check in both places, and also extracts out the logic to a single
check_deploy_allowedfunction.Type of Change
Related Issues
Fixes #(issue)
Checklist
Testing
Additional Notes