From 1708a1043244aa13f8430fcef227ccddb7ecb9c1 Mon Sep 17 00:00:00 2001 From: Makram Kamaleddine Date: Tue, 14 Apr 2026 19:18:22 +0300 Subject: [PATCH] pkg/types/ccipocr3: add mapstructure tag to RMNCurseResponse.CursedSubjects --- pkg/types/ccipocr3/contractconfigsnapshot.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/types/ccipocr3/contractconfigsnapshot.go b/pkg/types/ccipocr3/contractconfigsnapshot.go index a73b67655..f44121584 100644 --- a/pkg/types/ccipocr3/contractconfigsnapshot.go +++ b/pkg/types/ccipocr3/contractconfigsnapshot.go @@ -85,7 +85,13 @@ type ConfigInfo struct { } type RMNCurseResponse struct { - CursedSubjects [][16]byte + // CursedSubjects is a list of cursed subjects. + // + // Note that the mapstructure tag is required for correct decoding of the response + // from the EVM RPC. Due to the field named `CursedSubjects` not matching + // the named return `subjects` from the contract, without it the codec would silently + // ignore the field and not populate it with the cursed subjects from the contract. + CursedSubjects [][16]byte `mapstructure:"subjects"` } // OffRampStaticChainConfig is used to parse the response from the offRamp contract's getStaticConfig method.