Skip to content

feat: provide more context to precompiles#2318

Merged
rakita merged 2 commits intobluealloy:mainfrom
bernard-wagner:custom-precompiles
Mar 27, 2025
Merged

feat: provide more context to precompiles#2318
rakita merged 2 commits intobluealloy:mainfrom
bernard-wagner:custom-precompiles

Conversation

@bernard-wagner
Copy link
Contributor

To provide greater support for custom precompiles, it would be useful to pass InputsImpl and is_static to PrecompileProvider::run instead of only a subset of the fields passed as inputs to the Interpreter. There are some use cases for custom chains that inspect the caller or should not be allowed in a static context (state-changing precompiles).

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 26, 2025

CodSpeed Performance Report

Merging #2318 will not alter performance

Comparing bernard-wagner:custom-precompiles (68eaa9c) with main (76e1266)

Summary

✅ 8 untouched benchmarks

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense and PR lgtm

@rakita rakita merged commit 170a304 into bluealloy:main Mar 27, 2025
29 checks passed
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