feat(chisel): Chisel dispatch by EVM network#14813
Open
haythemsellami wants to merge 4 commits into
Open
Conversation
figtracer
reviewed
May 18, 2026
| "latest" => ChiselSession::latest(), | ||
| id => ChiselSession::load(id), | ||
| "latest" => ChiselSession::<FEN>::latest(), | ||
| id => ChiselSession::<FEN>::load(id), |
Collaborator
There was a problem hiding this comment.
a Tempo session saved with --network tempo can later be loaded as ChiselSession<EthEvmNetwork> if the user runs chisel load <id> without --network tempo
Contributor
Author
There was a problem hiding this comment.
Good catch. I added a load-time network check before rebuilding the saved session. Chisel now compares
the current config network against the network persisted in the saved session config and errors if they
differ.
mablr
reviewed
May 20, 2026
| #[derive(Debug)] | ||
| pub struct ChiselDispatcher { | ||
| pub session: ChiselSession, | ||
| pub struct ChiselDispatcher<FEN: FoundryEvmNetwork = EthEvmNetwork> { |
Collaborator
There was a problem hiding this comment.
I think this shouldn't default to EthEvmNetwork, dispatch must be explicit to avoid misrouting.
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.
Closes #14812.
This makes Chisel's session/source/runner execution path generic over FoundryEvmNetwork and dispatches from the loaded NetworkConfigs at the command boundary.
It also adds a Tempo regression test that exercises chisel --network tempo against a Tempo-only precompile.