Fix reversion for formatting of big numbers

This commit is contained in:
Nick Johnson 2018-10-18 13:02:48 +01:00
parent 5719808582
commit 532ec8e2c1

View file

@ -221,10 +221,6 @@ func (b *Big) UnmarshalGraphQL(input interface{}) error {
return err return err
} }
func (b Big) MarshalJSON() ([]byte, error) {
return strconv.AppendQuote(nil, (*big.Int)(&b).Text(10)), nil
}
// Uint64 marshals/unmarshals as a JSON string with 0x prefix. // Uint64 marshals/unmarshals as a JSON string with 0x prefix.
// The zero value marshals as "0x0". // The zero value marshals as "0x0".
type Uint64 uint64 type Uint64 uint64