Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
augustbleeds committed Dec 30, 2024
1 parent e369833 commit 8b5e90d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions relayer/pkg/chainlink/ocr2/medianreport/onchainconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ func (codec OnchainConfigCodec) Decode(ctx context.Context, b []byte) (median.On
minVal := felts[1]
maxVal := felts[2]

if !(min.Cmp(max) <= 0) {
return median.OnchainConfig{}, fmt.Errorf("OnchainConfig min (%v) should not be greater than max(%v)", min, max)
if !(minVal.Cmp(maxVal) <= 0) {
return median.OnchainConfig{}, fmt.Errorf("OnchainConfig min (%v) should not be greater than max(%v)", minVal, maxVal)
}

return median.OnchainConfig{Min: minVal, Max: maxVal}, nil
Expand Down

0 comments on commit 8b5e90d

Please sign in to comment.