Skip to content

Commit 6d51131

Browse files
committed
fix: change to 0
1 parent a6a5bc0 commit 6d51131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/bigNumber/float.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ func (b *Float) MarshalJSON() ([]byte, error) {
423423
return json.Marshal(big.NewFloat(0).String())
424424
}
425425
if b.IsInf() {
426-
return json.Marshal(math.MaxFloat64)
426+
return json.Marshal(big.NewFloat(0).String())
427427
}
428428
toFloat64, _ := b.Float64()
429429
return json.Marshal(toFloat64)

0 commit comments

Comments
 (0)