-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(composer)!: Add chain_id check on executor build (#1175)
## Summary Added check to ensure the executor's configured chain_id and the sequencer client's actual chain_id match. ## Background This check ensures that the composer is communicating with the sequencer RPC on the correct network. ## Changes Added chain_id check to the composer executor builder. Made executor builder async to accommodate for async communication with sequencer client. Moved nonce guard declaration from mock startup to individual tests in executor tests. Added function to mount a status response with a given chain_id to the mock. This is so the executor builder can gather the status response without throwing an HTTP 404 error. ## Testing Added executor test to validate the failure of an executor build with a chain_id mismatch. ## Related Issues Part of #986 --------- Co-authored-by: Richard Janis Goldschmidt <[email protected]> Co-authored-by: Ethan Oroshiba <[email protected]>
- Loading branch information
1 parent
a6d3d96
commit b8f26d2
Showing
3 changed files
with
292 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.