Skip to content

Commit

Permalink
Uses custom marshal JSON call on DB store call
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzaldysanchez committed Jul 9, 2024
1 parent 4279fb5 commit fcaf52b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/services/registrysyncer/orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package registrysyncer
import (
"context"
"crypto/sha256"
"encoding/json"

"github.com/smartcontractkit/chainlink-common/pkg/sqlutil"

Expand All @@ -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
}
Expand Down

0 comments on commit fcaf52b

Please sign in to comment.