Skip to content

Commit

Permalink
chore: Replace error str
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed Jan 17, 2025
1 parent 036edc8 commit 07b1cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 07b1cb5

Please sign in to comment.