diff --git a/src/commands/batchApproveExecute.ts b/src/commands/batchApproveExecute.ts index d436c9d..5cb2b3f 100644 --- a/src/commands/batchApproveExecute.ts +++ b/src/commands/batchApproveExecute.ts @@ -120,10 +120,9 @@ async function approveExecute( } const txEnvelope = new RetriableTransactionEnvelope(ctx.provider, instrs, []) const receipts = await txEnvelope.confirmAll({ resend: 100, commitment: "finalized" }) - const signatures: string[] = [] - for (const receipt of receipts) { - signatures.push(receipt.signature) - } - console.log("signatures: ", signatures.toString()) + console.log( + "signatures: ", + receipts.map((receipt) => receipt.signature), + ) } diff --git a/src/commands/batchCreate.ts b/src/commands/batchCreate.ts index c3c53ce..12af858 100644 --- a/src/commands/batchCreate.ts +++ b/src/commands/batchCreate.ts @@ -98,10 +98,6 @@ async function createTx( const txEnvelope = new RetriableTransactionEnvelope(ctx.provider, instructions, signers) const receipts = await txEnvelope.confirmAll({ resend: 100, commitment: "finalized" }) - const signatures: string[] = [] - for (const receipt of receipts) { - signatures.push(receipt.signature) - } - return signatures.toString() + return receipts.map((receipt) => receipt.signature).toString() }