Skip to content

fix(ccip/sui): resolve RMNProxy.GetARM and seed fee_quoter prices after upgrade#22022

Closed
Fletch153 wants to merge 1 commit intodevelopfrom
fix-sui-ccip-arm-and-price-seed
Closed

fix(ccip/sui): resolve RMNProxy.GetARM and seed fee_quoter prices after upgrade#22022
Fletch153 wants to merge 1 commit intodevelopfrom
fix-sui-ccip-arm-and-price-seed

Conversation

@Fletch153
Copy link
Copy Markdown
Collaborator

Summary

Fixes two independent failures in Test_CCIP_Upgrade_EVM2Sui and Test_CCIP_Upgrade_CommonPkg_EVM2Sui that cascade through the same chainaccessor batch-refresh path and zero out the offramp OCR3 config digest, causing the CCIP commit plugin to self-reject its own reports (commit/report.go:222 — "my config digest doesn't match offramp's").

Root causes

X — RMNProxy.GetARMFunctionNotFound

Sui chainreader config (core/capabilities/ccip/configs/sui/contract_reader.go:98-101) maps MethodNameGetARM to Move function rmn_remote::get_arm, which does not exist in chainlink-sui/contracts/ccip/ccip/sources/rmn_remote.move (grep confirms zero definitions). Every refresh cycle fails on the RMN leg of the dest-chain batch in chainlink-ccip/pkg/chainaccessor/default_accessor.go:150-214, fail-fast processed at config_processors.go:107-168, returning zero-valued OfframpConfig{}ConfigDigest = [32]byte{}.

On Sui the rmn_remote module lives inside the CCIP package; the correct "ARM address" is the latest CCIP package id. Fix: ResponseFromInputs: []string{"package_id"} synthesizes that value via chainlink-sui chainreader's existing executeFunction plumbing (relayer/chainreader/reader/chainreader.go:927-942), no Move source change, no dep bump.

Y — Sui fee_quoter price tables empty for EVM dest

AddLane(from=EVM, to=Sui) populates EVM-side fee_quoter only (deployment/ccip/changeset/testhelpers/test_helpers_solana_v0_1_0.go:943-1012 — no case chainsel.FamilySui: on the toFamily switch). Sui-side usd_per_unit_gas_by_dest_chain[EVM selector] and usd_per_token[LINK] stay empty. Commit plugin observation aborts every cycle with EUnknownDestChainSelector(3) (fee_quoter.move:1578-1581) and EUnknownToken(4) (fee_quoter.move:1569-1571). In isolation these are tolerated warnings, but in the same batch as X they compound into the same zero-digest cascade.

Fix: seed via FeeQuoterUpdatePricesWithOwnerCapOp immediately after upgradeCCIP (so the write targets the post-upgrade, unblocked package). Values mirror SendSuiCCIPRequest in test_sui_helpers.go:145-168.

Why both need to land together

Both reads live in the same batch in chainaccessor.prepareDestChainRequest. processOfframpResults / processStandardChainConfigResults are fail-fast: one bad sibling zeros the whole OfframpConfig → cached zero digest → plugin self-rejects → no commit txs → 22-min timeout. Fixing X alone leaves Y to trigger the same cascade (and vice versa).

Evidence

Failing job 71358465085 (PR #22016 latest), log at integration-tests/smoke/ccip/logs/2026-04-14T22-18-10_Test_CCIP_Upgrade_EVM2Sui.log:

  • L72091: correct on-chain OCR3 digest returned (000acd0c35…) — proves read path isn't broken at the contract level.
  • L72678+: plugin compares against offRampConfigDigest: 0x0000…0000 from poller cache → rejects own report.
  • default_accessor.go:115 errors repeat for full 22 min: get_arm: FunctionNotFound and get_dest_chain_gas_price: EUnknownDestChainSelector.
  • Zero SubmitTransaction/signAndExecute on Sui chain writer through test lifetime.

Scope

  • core/capabilities/ccip/configs/sui/contract_reader.go — 3 lines
  • integration-tests/smoke/ccip/ccip_sui_upgrade_test.go — new helper seedSuiFeeQuoterForRemote, called after upgradeCCIP in the two failing tests

go vet ./... and go test -run=XXX -count=1 ./smoke/ccip/... clean.

Relationship to #22016

Independent fix. #22016 addresses offramp→fee_quoter linkage on the commit-tx submission path (necessary to unblock transmission once reports start being produced). This PR unblocks report production in the first place. Land order doesn't matter; both are needed for the tests to go green.

Test plan

  • Test_CCIP_Upgrade_EVM2Sui passes
  • Test_CCIP_Upgrade_CommonPkg_EVM2Sui passes
  • No regression on Test_CCIP_Messaging_EVM2Sui, Test_CCIP_Upgrade_Sui2EVM, Test_CCIP_Upgrade_NoBlock_EVM2Sui
  • Review with CCIP team: does ResponseFromInputs:["package_id"] return the correct address for downstream RMNRemote binding (expected: yes — RMNRemote reads bind to the same CCIP package)

…er upgrade

Two independent failures cascade through the same chainaccessor
batch-refresh path and zero-out the offramp OCR3 config digest,
causing the CCIP commit plugin to self-reject its own reports
(commit/report.go:222 "my config digest doesn't match offramp's"),
making Test_CCIP_Upgrade_EVM2Sui and Test_CCIP_Upgrade_CommonPkg_EVM2Sui
flaky on Sui.

X. RMNProxy.GetARM → FunctionNotFound
   Sui chainreader config mapped MethodNameGetARM to Move function
   rmn_remote::get_arm, which doesn't exist in chainlink-sui's
   rmn_remote.move. Every refresh cycle hit FunctionNotFound in the
   RMN leg of the batch. On Sui the rmn_remote module lives inside
   the CCIP package, so the correct "ARM address" is the latest CCIP
   package id. Use ResponseFromInputs:["package_id"] to synthesize
   that response without touching chainlink-sui or Move source.

Y. Sui fee_quoter has no dest-chain gas / token price state after upgrade
   AddLane(EVM→Sui) seeds the EVM-side fee_quoter only. No helper
   writes usd_per_unit_gas_by_dest_chain[EVM selector] or
   usd_per_token[Sui LINK] on the Sui side, so the commit plugin's
   observation reads abort EUnknownDestChainSelector(3) /
   EUnknownToken(4) from fee_quoter::*_internal. Seed those tables
   via FeeQuoterUpdatePricesWithOwnerCapOp against the post-upgrade
   (unblocked) CCIP package immediately after upgradeCCIP in both
   failing tests.

Both failures share the batch-refresh fail-fast behavior in
chainaccessor/config_processors.go: a single read error returns a
zero-valued OfframpConfig, poisoning the config-digest cache. Fixing
either alone still leaves the other to trigger the zero-digest
cascade, so both must land together.
@github-actions
Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@github-actions
Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@Fletch153
Copy link
Copy Markdown
Collaborator Author

Merging into #22016 to keep the Sui upgrade-test fix in one place.

@Fletch153 Fletch153 closed this Apr 15, 2026
@Fletch153 Fletch153 deleted the fix-sui-ccip-arm-and-price-seed branch April 15, 2026 10:14
@trunk-io
Copy link
Copy Markdown

trunk-io bot commented Apr 15, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@cl-sonarqube-production
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant