format nil big.Int values as 'nil' instead of '<nil>'

This commit is contained in:
Jared Wasinger 2023-11-14 22:05:58 +08:00
parent d960dc8fa7
commit c5cd6fe922

View file

@ -166,7 +166,7 @@ func FormatLogfmtValue(value interface{}, term bool) string {
// Big ints get consumed by the Stringer clause, so we need to handle
// them earlier on.
if v == nil {
return "<nil>"
return "nil"
}
return formatLogfmtBigInt(v)
@ -174,7 +174,7 @@ func FormatLogfmtValue(value interface{}, term bool) string {
// Uint256s get consumed by the Stringer clause, so we need to handle
// them earlier on.
if v == nil {
return "<nil>"
return "nil"
}
return formatLogfmtUint256(v)
}