We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c734fb commit d10fdbaCopy full SHA for d10fdba
x/evm/types/eth.go
@@ -49,7 +49,7 @@ func (tx *EthereumTx) Unmarshal(dst []byte) error {
49
50
func (tx *EthereumTx) UnmarshalJSON(bz []byte) error {
51
var data hexutil.Bytes
52
- if err := json.Unmarshal(bz, &bz); err != nil {
+ if err := json.Unmarshal(bz, &data); err != nil {
53
return err
54
}
55
return tx.UnmarshalBinary(data)
@@ -60,7 +60,7 @@ func (tx EthereumTx) MarshalJSON() ([]byte, error) {
60
if err != nil {
61
return nil, err
62
63
- return json.Marshal(bz)
+ return json.Marshal(hexutil.Bytes(bz))
64
65
66
func (tx EthereumTx) Validate() error {
0 commit comments