Skip to content

Commit

Permalink
What even is a closure (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin authored May 8, 2024
1 parent 281ede5 commit 48f78ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connect/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export async function signAndSendWait<N extends Network, C extends Chain>(
): Promise<TransactionId[]> {
if (!isSignAndSendSigner(signer))
throw new Error("Invalid signer, only SignAndSendSigner may call this method");

const txHashes = await ssw(xfer, signer.signAndSend);
const signSend: SignSend<N, C> = (txs) => signer.signAndSend(txs);
const txHashes = await ssw(xfer, signSend);
return txHashes.map((txid) => ({ chain: signer.chain(), txid }));
}

Expand Down

0 comments on commit 48f78ee

Please sign in to comment.