Skip to content

Commit 4f67343

Browse files
authored
Test different precommit level (#831)
1 parent 5ee1f20 commit 4f67343

File tree

1 file changed

+4
-5
lines changed
  • governance/xc_admin/packages/xc_admin_common/src

1 file changed

+4
-5
lines changed

governance/xc_admin/packages/xc_admin_common/src/propose.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,10 @@ export async function proposeInstructions(
212212
const txToSend = batchIntoTransactions(ixToSend);
213213

214214
for (let i = 0; i < txToSend.length; i += SIZE_OF_SIGNED_BATCH) {
215-
await new AnchorProvider(
216-
squad.connection,
217-
squad.wallet,
218-
AnchorProvider.defaultOptions()
219-
).sendAll(
215+
await new AnchorProvider(squad.connection, squad.wallet, {
216+
preflightCommitment: "processed",
217+
commitment: "confirmed",
218+
}).sendAll(
220219
txToSend.slice(i, i + SIZE_OF_SIGNED_BATCH).map((tx) => {
221220
return { tx, signers: [] };
222221
})

0 commit comments

Comments
 (0)