From f3d8a03407e2cb35947d03947e6e1c0405cc9707 Mon Sep 17 00:00:00 2001 From: guibescos <59208140+guibescos@users.noreply.github.com> Date: Tue, 17 Sep 2024 12:47:48 +0100 Subject: [PATCH] fix: executor (#1926) * fix: executor * go --- .../xc_admin/packages/xc_admin_common/src/executor.ts | 11 +++++++---- .../xc_admin/packages/xc_admin_common/src/propose.ts | 1 - 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/governance/xc_admin/packages/xc_admin_common/src/executor.ts b/governance/xc_admin/packages/xc_admin_common/src/executor.ts index c33614cd31..a634e1d4f2 100644 --- a/governance/xc_admin/packages/xc_admin_common/src/executor.ts +++ b/governance/xc_admin/packages/xc_admin_common/src/executor.ts @@ -24,6 +24,7 @@ import { AnchorProvider } from "@project-serum/anchor"; import { TransactionBuilder, PriorityFeeConfig, + sendTransactions, } from "@pythnetwork/solana-utils"; import { findDetermisticPublisherBufferAddress, @@ -31,6 +32,7 @@ import { PRICE_STORE_PROGRAM_ID, PriceStoreMultisigInstruction, } from "./price_store"; +import { Wallet } from "@coral-xyz/anchor"; /** * Returns the instruction to pay the fee for a wormhole postMessage instruction @@ -173,10 +175,11 @@ export async function executeProposal( ); signatures.push( - await new AnchorProvider(squad.connection, squad.wallet, { - commitment: commitment, - preflightCommitment: commitment, - }).sendAndConfirm(transaction, [], { skipPreflight: true }) + ...(await sendTransactions( + [{ tx: transaction, signers: [] }], + squad.connection, + squad.wallet as Wallet + )) ); } return signatures; diff --git a/governance/xc_admin/packages/xc_admin_common/src/propose.ts b/governance/xc_admin/packages/xc_admin_common/src/propose.ts index 827c9a9760..388c0d89f4 100644 --- a/governance/xc_admin/packages/xc_admin_common/src/propose.ts +++ b/governance/xc_admin/packages/xc_admin_common/src/propose.ts @@ -6,7 +6,6 @@ import { SYSVAR_CLOCK_PUBKEY, SystemProgram, ConfirmOptions, - sendAndConfirmRawTransaction, } from "@solana/web3.js"; import { BN } from "bn.js"; import { AnchorProvider } from "@coral-xyz/anchor";