Fix dispatchSuccess initialization in Gateway.v2_submit#1685
Merged
yrong merged 2 commits intoron/multi-contract-callsfrom Jan 26, 2026
Merged
Fix dispatchSuccess initialization in Gateway.v2_submit#1685yrong merged 2 commits intoron/multi-contract-callsfrom
yrong merged 2 commits intoron/multi-contract-callsfrom
Conversation
Co-authored-by: yrong <4383920+yrong@users.noreply.github.com>
Contributor
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
[WIP] Address feedback on multiple contract calls implementation
Fix dispatchSuccess initialization in Gateway.v2_submit
Jan 26, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## ron/multi-contract-calls #1685 +/- ##
=========================================================
Coverage 81.04% 81.04%
=========================================================
Files 22 22
Lines 1029 1029
Branches 191 191
=========================================================
Hits 834 834
Misses 178 178
Partials 17 17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Copilot stopped work on behalf of
yrong due to an error
January 26, 2026 12:54
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.
Addresses review feedback on the
dispatchSuccessflag initialization in thev2_submitfunction. Whenv2_dispatchfails with an error that's caught but not rethrown (e.g., unexpected revert data, out-of-gas), the emitted event must reflect the failure.Changes
dispatchSuccesstofalseinstead oftrueinGateway.v2_submitTechnical Details
The try-catch block in
v2_submitselectively rethrows onlyAtomicCommandFailedandInsufficientGasLimiterrors. Other failures are silently caught:This ensures
InboundMessageDispatchedevents accurately reflect dispatch outcomes in all error scenarios.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.