From 90b22c005141e7a1adae685f4e02cab8b12f88e8 Mon Sep 17 00:00:00 2001 From: KamiD <44460798+KamiD@users.noreply.github.com> Date: Thu, 15 Apr 2021 15:47:25 +0800 Subject: [PATCH] Merge PR: optimize error of ErrTxTooLarge (#820) --- app/rpc/namespaces/eth/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/rpc/namespaces/eth/utils.go b/app/rpc/namespaces/eth/utils.go index 1f679ee60d..4c094b51b3 100644 --- a/app/rpc/namespaces/eth/utils.go +++ b/app/rpc/namespaces/eth/utils.go @@ -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) }