Skip to content

Commit 48f78ee

Browse files
authored
What even is a closure (#527)
1 parent 281ede5 commit 48f78ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connect/src/common.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export async function signAndSendWait<N extends Network, C extends Chain>(
3535
): Promise<TransactionId[]> {
3636
if (!isSignAndSendSigner(signer))
3737
throw new Error("Invalid signer, only SignAndSendSigner may call this method");
38-
39-
const txHashes = await ssw(xfer, signer.signAndSend);
38+
const signSend: SignSend<N, C> = (txs) => signer.signAndSend(txs);
39+
const txHashes = await ssw(xfer, signSend);
4040
return txHashes.map((txid) => ({ chain: signer.chain(), txid }));
4141
}
4242

0 commit comments

Comments
 (0)