Compare commits

...

1 Commits
rc5 ... item

Author SHA1 Message Date
Raul Jordan
1f403fd57f add 2022-07-07 11:29:15 -04:00

View File

@@ -77,10 +77,10 @@ func (e *ExecutionBlock) UnmarshalJSON(enc []byte) error {
t := &gethtypes.Transaction{}
encodedTx, err := json.Marshal(tx)
if err != nil {
return err
return errors.Wrapf(err, "could not marshal tx %v", tx)
}
if err := json.Unmarshal(encodedTx, &t); err != nil {
return err
return errors.Wrapf(err, "could not marshal tx %s", string(encodedTx))
}
txs[i] = t
}