Skip to content

Commit

Permalink
fix error returned during tx decoding (#2117)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniRamirezM committed May 23, 2023
1 parent 6a32c7e commit 37e9861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions state/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ func DecodeTxs(txsData []byte) ([]types.Transaction, []byte, error) {
var rlpFields [][]byte
err = rlp.DecodeBytes(txInfo, &rlpFields)
if err != nil {
log.Debug("error decoding tx Bytes: ", err, ". fullDataTx: ", hex.EncodeToString(fullDataTx), "\n tx: ", hex.EncodeToString(txInfo), "\n Txs received: ", hex.EncodeToString(txsData))
return []types.Transaction{}, txsData, err
log.Error("error decoding tx Bytes: ", err, ". fullDataTx: ", hex.EncodeToString(fullDataTx), "\n tx: ", hex.EncodeToString(txInfo), "\n Txs received: ", hex.EncodeToString(txsData))
return []types.Transaction{}, txsData, ErrInvalidData
}

legacyTx, err := RlpFieldsToLegacyTx(rlpFields, vData, rData, sData)
Expand Down

0 comments on commit 37e9861

Please sign in to comment.