Skip to content

Commit 8bdbd9f

Browse files
authored
pkg/types/ccipocr3: add mapstructure tag to RMNCurseResponse.CursedSubjects (#1982)
1 parent a931c3f commit 8bdbd9f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

pkg/types/ccipocr3/contractconfigsnapshot.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,13 @@ type ConfigInfo struct {
8585
}
8686

8787
type RMNCurseResponse struct {
88-
CursedSubjects [][16]byte
88+
// CursedSubjects is a list of cursed subjects.
89+
//
90+
// Note that the mapstructure tag is required for correct decoding of the response
91+
// from the EVM RPC. Due to the field named `CursedSubjects` not matching
92+
// the named return `subjects` from the contract, without it the codec would silently
93+
// ignore the field and not populate it with the cursed subjects from the contract.
94+
CursedSubjects [][16]byte `mapstructure:"subjects"`
8995
}
9096

9197
// OffRampStaticChainConfig is used to parse the response from the offRamp contract's getStaticConfig method.

0 commit comments

Comments
 (0)