Skip to content

More precompile corrections - #1693

Open
MOZGIII wants to merge 2 commits into
precompiles-fixfrom
precompiles-fix-2
Open

MOZGIII wants to merge 2 commits into
precompiles-fixfrom
precompiles-fix-2

Conversation

@MOZGIII

@MOZGIII MOZGIII commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

The EVM does not stop a precompile from writing Substrate storage or emitting
logs inside a STATICCALL, so the state-changing functions of the native
currency and swap precompiles must reject the static context themselves.
Non-payable functions also now reject attached value, which previously stayed
stuck at the precompile address.
Generate the forwarder contract per call kind instead of hard-coding the
DELEGATECALL variant, and assert that CALLCODE is rejected by the router guard
while STATICCALL is rejected only for state-changing functions.
@MOZGIII
MOZGIII force-pushed the precompiles-fix-2 branch from b4d09d7 to 71709be Compare October 2, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant