Skip to content

Commit

Permalink
chore: handle breaking cosmoskit change
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBHarley committed Jun 12, 2024
1 parent 01c35a9 commit 68bf164
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/features/wallet/hooks/cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 68bf164

Please sign in to comment.