fix(deploy): allow intent facets to deploy against codeless settler refs - #2184
Merged
gvladika merged 1 commit intoAug 10, 2026
Conversation
lifi-action-bot
marked this pull request as draft
August 7, 2026 11:14
Contributor
WalkthroughChangesSettler address configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
gvladika
marked this pull request as ready for review
August 7, 2026 11:15
gvladika
enabled auto-merge (squash)
August 7, 2026 11:22
melianessa
approved these changes
Aug 10, 2026
gvladika
deleted the
feature/exsc-748-allow-redeploying-intent-facets-against-codeless-reserved
branch
August 10, 2026 13:09
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.
Which Linear task belongs to this PR?
Fixes EXSC-748
Why did I implement it this way?
The intent settlers (InputSettlerEscrowLIFI / OutputSettlerSimple) are reserved, deterministically-deployed vanity addresses — identical on every chain. We deploy
LiFiIntentEscrowFacetV2andReceiverOIFon a chain before the settler is deployed there, so the immutable ref legitimately points at an address that has no code yet (e.g. jovay/megaeth after the 2026-08-06 switchover).DeployReceiverOIFread the output settler through the default_getConfigContractAddress, which runsLibAsset.isContractand reverted on a codeless ref, blocking (re)deployment on those chains.This reuses the existing 4-arg
_getConfigContractAddressoverload withallowNonContractAddress=true— the same pattern already used for tempo's dummy wrappedNative inDeployAcrossFacetV4— scoped only to the settler fields.allowZeroAddressstaysfalseand theExecutorread stays checked, so a zero address or a missing real dependency is still caught; only the intentional codeless-settler case is allowed through. The facet script previously read the input settler with a rawstdJson.readAddress(no zero/code checks at all); it now uses the same checked reader, keeping the codeless allowance while adding the zero-address guard it was missing.No automated test is added: this repo does not unit-test Foundry deploy scripts (the tempo precedent has none either), and
getConstructorArgsis internal and env/config-dependent. Functional validation is the actual (re)deploy against a chain whose settler ref is codeless.Checklist before requesting a review
Checklist for reviewer (DO NOT DEPLOY and contracts BEFORE CHECKING THIS!!!)