소스 검색

Test different precommit level (#831)

guibescos 2 년 전
부모
커밋
4f67343323
1개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 5
      governance/xc_admin/packages/xc_admin_common/src/propose.ts

+ 4 - 5
governance/xc_admin/packages/xc_admin_common/src/propose.ts

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