diff --git a/commit/merkleroot/types.go b/commit/merkleroot/types.go index 629cc6d14..571ccd8ef 100644 --- a/commit/merkleroot/types.go +++ b/commit/merkleroot/types.go @@ -1,8 +1,6 @@ package merkleroot import ( - "encoding/json" - "fmt" "sort" cciptypes "github.com/smartcontractkit/chainlink-common/pkg/types/ccipocr3" @@ -16,10 +14,6 @@ type Query struct { MerkleRoots []cciptypes.MerkleRootChain } -func (q Query) Encode() ([]byte, error) { - return json.Marshal(q) -} - func NewCommitQuery(rmnOnRampMaxSeqNums []plugintypes.SeqNumChain, merkleRoots []cciptypes.MerkleRootChain) Query { return Query{ RmnOnRampMaxSeqNums: rmnOnRampMaxSeqNums, @@ -34,15 +28,6 @@ type Observation struct { FChain map[cciptypes.ChainSelector]int `json:"fChain"` } -func (obs Observation) Encode() ([]byte, error) { - encodedObservation, err := json.Marshal(obs) - if err != nil { - return nil, fmt.Errorf("failed to encode MerkleObs: %w", err) - } - - return encodedObservation, nil -} - // MerkleAggregatedObservation is the aggregation of a list of observations type MerkleAggregatedObservation struct { // A map from chain selectors to the list of merkle roots observed for each chain