Repository navigation
fix(StdCheats): exclude OP Stack predeploys on Base in assumeNotPrecompile - #951
Open
HereForTheTechNFT wants to merge 2 commits into
Open
HereForTheTechNFT wants to merge 2 commits into
HereForTheTechNFT wants to merge 2 commits into
Conversation
…mpile Base (8453) and Base Sepolia (84532) are OP Stack chains with the same 0x4200... predeploys as OP Mainnet and OP Sepolia, but assumeNotPrecompile did not exclude them there. Co-authored-by: Claude <[email protected]>
Co-authored-by: Claude <[email protected]>
HereForTheTechNFT
requested review from
0xrusowsky,
DaniPopes,
grandizzy,
mattsse and
onbjerg
as code owners
November 20, 2026 12:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
assumeNotPrecompile(addr, chainId)excludes the OP Stack predeploy range (0x4200…0000to0x4200…0800) only for OP Mainnet (10), OP Goerli (420) and OP Sepolia (11155420). Base (8453) and Base Sepolia (84532) run the same OP Stack predeploys (WETH at0x4200…0006, L2ToL1MessagePasser, GasPriceOracle…), so fuzz inputs on those chains could still land on them.This adds 8453 and 84532 to the OP Stack branch, following #750, which did the same for OP Sepolia.
Test
test_AssumeNotPrecompileOpStackPredeployschecks that the WETH predeploy is rejected on optimism, optimism_sepolia, base and base_sepolia. It fails before the change ("next call did not revert as expected") and passes after. All 47StdCheatsTesttests pass, andforge fmt --checkis clean on the changed files.🤖 Generated with Claude Code
https://claude.ai/code/session_014cRzwuyJe8BGwXowsQ3kpw