Skip to content

Commit

Permalink
fix: handle more cases with not enough gas
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Apr 3, 2024
1 parent 7b8a2bf commit ada055e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ const getCosmosError = (err: Error): CosmosError => {
return CosmosError.Success;
}

if (err?.message?.includes("out of gas in")) {
if (
err?.message?.includes("out of gas in") ||
err?.message?.includes("insufficient fee")
) {
return CosmosError.NotEnoughGas;
}

Expand Down

0 comments on commit ada055e

Please sign in to comment.