• 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
types_test.go 2.75 KB