Skip to content

Commit

Permalink
Merge PR: optimize error of ErrTxTooLarge (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
KamiD authored Apr 15, 2021
1 parent 2ff92b3 commit 90b22c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/rpc/namespaces/eth/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func CheckError(txRes sdk.TxResponse) (common.Hash, error) {
case sdkerror.ErrMempoolIsFull.ABCICode():
return common.Hash{}, sdkerror.ErrMempoolIsFull
case sdkerror.ErrTxTooLarge.ABCICode():
return common.Hash{}, sdkerror.ErrTxTooLarge
return common.Hash{}, sdkerror.Wrapf(sdkerror.ErrTxTooLarge, txRes.RawLog)
}
return common.Hash{}, fmt.Errorf(txRes.RawLog)
}

0 comments on commit 90b22c0

Please sign in to comment.