Skip to content

Commit

Permalink
feat: enable leap wallet (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor authored Apr 3, 2024
1 parent 748768f commit bebb78c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/screens/staking/lib/staking_sdk/core/cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ export const leapNetworks = new Set(
),
);

export const cosmosWallets = new Set([
WalletId.Keplr,
// WalletId.Leap, // @TODO: Enable Leap wallet when ready
]);
export const cosmosWallets = new Set([WalletId.Keplr, WalletId.Leap]);

export const cosmosStakingNetworks = new Set([
...Array.from(cosmosWallets.has(WalletId.Keplr) ? keplrNetworks : []),
Expand Down
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 bebb78c

Please sign in to comment.