• Felix Lange's avatar
    common/hexutil: wrap errors in json.UnmarshalTypeError · 4a741df7
    Felix Lange authored
    This adds type and struct field context to error messages.
    Instead of "hex string of odd length" users will now see "json: cannot
    unmarshal hex string of odd length into Go struct field SendTxArgs.from
    of type common.Address".
    4a741df7
json_test.go 11.5 KB