Skip to content

Commit

Permalink
Revert "Disable temporarily."
Browse files Browse the repository at this point in the history
This reverts commit 6728772.
  • Loading branch information
winder committed Dec 17, 2024
1 parent 6728772 commit d672c7d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions core/capabilities/ccip/ocrimpls/contract_transmitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"

"github.com/smartcontractkit/chainlink-ccip/pkg/consts"
"github.com/smartcontractkit/chainlink-ccip/pkg/types/ccipocr3"
commontypes "github.com/smartcontractkit/chainlink-common/pkg/types"
"github.com/smartcontractkit/chainlink/v2/core/services/keystore/keys/ocr2key"
)
Expand Down Expand Up @@ -51,24 +52,22 @@ func ToExecCalldata(rawReportCtx [2][32]byte, report ocr3types.ReportWithInfo[[]
// If, for whatever reason, we want to change the field name, make sure to add a `mapstructure:"<arg_name>"` tag
// for that field.

/*
info, err := ccipocr3.DecodeExecuteReportInfo(report.Info)
if err != nil {
return nil, err
}
*/
info, err := ccipocr3.DecodeExecuteReportInfo(report.Info)
if err != nil {
return nil, err
}

// WARNING: Be careful if you change the data types.
// Using a different type e.g. `type Foo [32]byte` instead of `[32]byte`
// will trigger undefined chainWriter behavior, e.g. transactions submitted with wrong arguments.
return struct {
ReportContext [2][32]byte
Report []byte
//Info ccipocr3.ExecuteReportInfo
Info ccipocr3.ExecuteReportInfo
}{
ReportContext: rawReportCtx,
Report: report.Report,
//Info: info,
Info: info,
}, nil
}

Expand Down

0 comments on commit d672c7d

Please sign in to comment.