don't add comma's in logfmt formatted big.Int and uint256.Int

This commit is contained in:
Jared Wasinger 2023-11-08 16:46:21 +08:00
parent 7045f6ed72
commit dfea5f3160

View file

@ -277,13 +277,13 @@ func builtinReplace(_ []string, attr slog.Attr) slog.Attr {
if v == nil {
attr.Value = slog.AnyValue("<nil>")
} else {
attr.Value = slog.AnyValue(formatLogfmtBigInt(v))
attr.Value = slog.AnyValue(v.String())
}
case *uint256.Int:
if v == nil {
attr.Value = slog.AnyValue("<nil>")
} else {
attr.Value = slog.AnyValue(formatLogfmtUint256(v))
attr.Value = slog.AnyValue(v.ToBig().String())
}
}
return attr