diff --git a/core/services/registrysyncer/orm.go b/core/services/registrysyncer/orm.go index b7ca8226775..d73a15ff716 100644 --- a/core/services/registrysyncer/orm.go +++ b/core/services/registrysyncer/orm.go @@ -3,7 +3,6 @@ package registrysyncer import ( "context" "crypto/sha256" - "encoding/json" "github.com/smartcontractkit/chainlink-common/pkg/sqlutil" @@ -24,7 +23,7 @@ func newORM(ds sqlutil.DataSource, lggr logger.Logger) syncerORM { } func (orm syncerORM) addState(ctx context.Context, state State) error { - stateJSON, err := json.Marshal(state) + stateJSON, err := state.MarshalJSON() if err != nil { return err }