From 719be345a290b8b9c5f34055368a29ed39aeb5ee Mon Sep 17 00:00:00 2001 From: Trevor Porter Date: Tue, 5 Nov 2024 17:11:51 +0000 Subject: [PATCH 1/2] chore: increase the Cosmos gas estimate multiplier --- src/features/wallet/hooks/cosmos.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/wallet/hooks/cosmos.ts b/src/features/wallet/hooks/cosmos.ts index 6cd372ce..1f62c32f 100644 --- a/src/features/wallet/hooks/cosmos.ts +++ b/src/features/wallet/hooks/cosmos.ts @@ -69,7 +69,7 @@ export function useCosmosDisconnectFn(): () => Promise { } export function useCosmosActiveChain(): ActiveChainInfo { - return useMemo(() => ({}) as ActiveChainInfo, []); + return useMemo(() => ({} as ActiveChainInfo), []); } export function useCosmosTransactionFns(): ChainTransactionFns { @@ -108,8 +108,8 @@ export function useCosmosTransactionFns(): ChainTransactionFns { // The fee param of 'auto' here stopped working for Neutron-based IBC transfers // It seems the signAndBroadcast method uses a default fee multiplier of 1.4 // https://github.com/cosmos/cosmjs/blob/e819a1fc0e99a3e5320d8d6667a08d3b92e5e836/packages/stargate/src/signingstargateclient.ts#L115 - // Bumping to 1.6 fixes the insufficient gas issue - result = await client.signAndBroadcast(chainContext.address, [tx.transaction], 1.6); + // A multiplier of 1.6 was insufficient for Celestia -> Neutron|Cosmos -> XXX transfers, but 2 worked. + result = await client.signAndBroadcast(chainContext.address, [tx.transaction], 2); txDetails = await client.getTx(result.transactionHash); } else { throw new Error(`Invalid cosmos provider type ${tx.type}`); From 13992ac9401da53df6fcea829a34aa6a459c486f Mon Sep 17 00:00:00 2001 From: Trevor Porter Date: Wed, 6 Nov 2024 14:13:51 +0000 Subject: [PATCH 2/2] prettier --- src/features/wallet/hooks/cosmos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/wallet/hooks/cosmos.ts b/src/features/wallet/hooks/cosmos.ts index 1f62c32f..c37488e3 100644 --- a/src/features/wallet/hooks/cosmos.ts +++ b/src/features/wallet/hooks/cosmos.ts @@ -69,7 +69,7 @@ export function useCosmosDisconnectFn(): () => Promise { } export function useCosmosActiveChain(): ActiveChainInfo { - return useMemo(() => ({} as ActiveChainInfo), []); + return useMemo(() => ({}) as ActiveChainInfo, []); } export function useCosmosTransactionFns(): ChainTransactionFns {