Skip to content

Sending selector in RMN curse sequence#2063

Open
carte7000 wants to merge 1 commit into
mainfrom
simon/consider-chain-selector-to-avoid-cached-ops
Open

Sending selector in RMN curse sequence#2063
carte7000 wants to merge 1 commit into
mainfrom
simon/consider-chain-selector-to-avoid-cached-ops

Conversation

@carte7000
Copy link
Copy Markdown
Contributor

No description provided.

@carte7000 carte7000 marked this pull request as ready for review May 12, 2026 20:00
@carte7000 carte7000 requested a review from a team as a code owner May 12, 2026 20:00
Copilot AI review requested due to automatic review settings May 12, 2026 20:00
@carte7000 carte7000 requested a review from a team as a code owner May 12, 2026 20:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the RMN v2.1.0 curse/uncurse sequence inputs to carry an explicit chain selector, and wires that selector through the fastcurse adapter when invoking the on-chain sequences.

Changes:

  • Added ChainSelector to SeqCurseInput and SeqUncurseInput for RMN v2.1.0 sequences.
  • Updated the v2.1.0 fastcurse adapter to populate the new ChainSelector field when executing RmnCurse/RmnUncurse.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
chains/evm/deployment/v2_1_0/sequences/rmn.go Extends RMN curse/uncurse sequence input structs with ChainSelector.
chains/evm/deployment/v2_1_0/adapters/fastcurse.go Populates ChainSelector when calling RMN v2.1.0 curse/uncurse sequences.
Comments suppressed due to low confidence (1)

chains/evm/deployment/v2_1_0/sequences/rmn.go:104

  • SeqUncurseInput now includes ChainSelector, but RmnUncurse never reads/validates it (and always uses chain.Selector). Consider validating in.ChainSelector == chain.Selector and using the input selector when building the FunctionInput so the new parameter has an effect and prevents accidental cross-chain mismatches.
type SeqUncurseInput struct {
	ChainSelector uint64
	RMNAddress    common.Address
	Subjects      [][16]byte
}

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 93 to 97
type SeqCurseInput struct {
RMNAddress common.Address
Subjects [][16]byte
ChainSelector uint64
RMNAddress common.Address
Subjects [][16]byte
}
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.

2 participants