From 07b1cb5b746b1213559ef83a3b623682f0c99e5b Mon Sep 17 00:00:00 2001 From: dudong2 Date: Fri, 17 Jan 2025 16:28:27 +0900 Subject: [PATCH] chore: Replace error str --- client/broadcast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/broadcast.go b/client/broadcast.go index 0f90be179871..bc5f65d8f2e9 100644 --- a/client/broadcast.go +++ b/client/broadcast.go @@ -78,7 +78,7 @@ func CheckCometError(err error, tx cmttypes.Tx) *sdk.TxResponse { TxHash: txHash, } - case strings.Contains(errStr, "mempool tx max capacity"): + case strings.Contains(errStr, "mempool rate limit exceeded"): return &sdk.TxResponse{ Code: sdkerrors.ErrMempoolRateLimitExceeded.ABCICode(), Codespace: sdkerrors.ErrMempoolRateLimitExceeded.Codespace(),