Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/utils/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ async function Transaction(wallet, signerAddress, msgs, fee, memo = "") {
tendermintRPCURL,
wallet,
);
return await cosmJS.signAndBroadcast(signerAddress, msgs, fee, memo);
const clientResult = await cosmJS.signAndBroadcast(signerAddress, msgs, fee, memo);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is required for queries also, which we are doing using tendermintClient.
Ideally want to create one session per browser. rather than creating and destroying everytime.

cosmJS.disconnect();
return clientResult;

}

async function TransactionWithKeplr(msgs, fee, memo = "", chainID = configChainID) {
Expand Down