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";