From 68bf164d19d7ef7901fed3a70a6e75580c98f7ff Mon Sep 17 00:00:00 2001 From: Alex Harley Date: Wed, 12 Jun 2024 18:06:26 +0200 Subject: [PATCH] chore: handle breaking cosmoskit change --- src/features/wallet/hooks/cosmos.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/features/wallet/hooks/cosmos.ts b/src/features/wallet/hooks/cosmos.ts index 30f39918..fc675d63 100644 --- a/src/features/wallet/hooks/cosmos.ts +++ b/src/features/wallet/hooks/cosmos.ts @@ -97,7 +97,12 @@ export function useCosmosTransactionFns(): ChainTransactionFns { assert(txDetails, `Cosmos tx failed: ${JSON.stringify(result)}`); return { type: tx.type, - receipt: { ...txDetails, transactionHash: result.transactionHash }, + receipt: { + ...txDetails, + gasUsed: parseInt(txDetails.gasUsed.toString()), + gasWanted: parseInt(txDetails.gasWanted.toString()), + transactionHash: result.transactionHash, + }, }; }; return { hash: result.transactionHash, confirm };