From ada055e76dbd14602a0a0c6905a9eeaba0928810 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Wed, 3 Apr 2024 11:11:53 +0800 Subject: [PATCH] fix: handle more cases with not enough gas --- .../staking/lib/staking_sdk/wallet_operations/cosmos.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/screens/staking/lib/staking_sdk/wallet_operations/cosmos.ts b/src/screens/staking/lib/staking_sdk/wallet_operations/cosmos.ts index fc4de235..1da82d97 100644 --- a/src/screens/staking/lib/staking_sdk/wallet_operations/cosmos.ts +++ b/src/screens/staking/lib/staking_sdk/wallet_operations/cosmos.ts @@ -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; }