Test different precommit level (#831)

This commit is contained in:
guibescos 2023-05-22 12:56:06 -05:00 committed by GitHub
parent 5ee1f20e73
commit 4f67343323
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -212,11 +212,10 @@ export async function proposeInstructions(
const txToSend = batchIntoTransactions(ixToSend); const txToSend = batchIntoTransactions(ixToSend);
for (let i = 0; i < txToSend.length; i += SIZE_OF_SIGNED_BATCH) { for (let i = 0; i < txToSend.length; i += SIZE_OF_SIGNED_BATCH) {
await new AnchorProvider( await new AnchorProvider(squad.connection, squad.wallet, {
squad.connection, preflightCommitment: "processed",
squad.wallet, commitment: "confirmed",
AnchorProvider.defaultOptions() }).sendAll(
).sendAll(
txToSend.slice(i, i + SIZE_OF_SIGNED_BATCH).map((tx) => { txToSend.slice(i, i + SIZE_OF_SIGNED_BATCH).map((tx) => {
return { tx, signers: [] }; return { tx, signers: [] };
}) })