Repository navigation
fix(relayer): attribute an offramp abort to the offramp only by location and code - #614
Merged
Merged
Conversation
JohnChangUK
force-pushed
the
fix/offramp-revert-classification
branch
4 times, most recently
from
November 20, 2026 04:17
8988f9a to
4c028e3
Compare
…ion and code The tx poller classified a failed execute as reverted-before-the-receiver whenever its VmStatus text contained the offramp's rendered address::module string. A substring match accepts that string anywhere in an abort's text, and a text comparison of the address misses a node that renders it zero-padded, so a receiver-side failure could be skipped and a genuine pre-dispatch revert recorded as a permanent failure. The status is now parsed: the aborting address is taken from the status's own location and compared by bytes, and the abort code from the hex, which a node renders bare when the module publishes no error map, as the offramp does, and wrapped in a name when it does. Only the seven codes execute asserts before the receiver runs are skipped, taken from the module bindings: E_UNKNOWN_SOURCE_CHAIN_SELECTOR, E_TOKEN_DATA_MISMATCH, E_ROOT_NOT_COMMITTED, E_SOURCE_CHAIN_NOT_ENABLED, E_UNSUPPORTED_TOKEN, E_FUNGIBLE_ASSET_TYPE_MISMATCH and E_FUNGIBLE_ASSET_AMOUNT_MISMATCH. The last three are asserted in release_or_mint before dispatch, so a receiver cannot raise them. Every other abort at that address is reachable by a receiver re-entering the module, via calculate_message_hash with mismatched vector lengths or a state-touching call tripping the reentrancy guard, and is now recorded as a receiver-side failure rather than retried forever.
JohnChangUK
force-pushed
the
fix/offramp-revert-classification
branch
from
November 20, 2026 04:32
4c028e3 to
110bf0d
Compare
JohnChangUK
marked this pull request as ready for review
November 20, 2026 04:37
product-security-plaid-production
Bot
requested review from
DylanTinianov,
Krish-vemula,
Unheilbar,
amit-momin,
dhaidashenko,
ilija42,
prashantkumar1982,
silaslenihan,
wilson-cl and
yashnevatia
November 20, 2026 04:37
friedemannf
approved these changes
Nov 20, 2026
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.
Description
Seven codes asserted before the receiver runs are skipped, reasons from the module bindings: E_UNKNOWN_SOURCE_CHAIN_SELECTOR, E_TOKEN_DATA_MISMATCH, E_ROOT_NOT_COMMITTED, E_SOURCE_CHAIN_NOT_ENABLED, E_UNSUPPORTED_TOKEN, E_FUNGIBLE_ASSET_TYPE_MISMATCH, E_FUNGIBLE_ASSET_AMOUNT_MISMATCH. The last three fire in release_or_mint before dispatch.