File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
governance/xc_admin/packages/xc_admin_common/src Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,15 @@ import { AnchorProvider } from "@project-serum/anchor";
2424import {
2525 TransactionBuilder ,
2626 PriorityFeeConfig ,
27+ sendTransactions ,
2728} from "@pythnetwork/solana-utils" ;
2829import {
2930 findDetermisticPublisherBufferAddress ,
3031 PRICE_STORE_BUFFER_SPACE ,
3132 PRICE_STORE_PROGRAM_ID ,
3233 PriceStoreMultisigInstruction ,
3334} from "./price_store" ;
35+ import { Wallet } from "@coral-xyz/anchor" ;
3436
3537/**
3638 * Returns the instruction to pay the fee for a wormhole postMessage instruction
@@ -173,10 +175,11 @@ export async function executeProposal(
173175 ) ;
174176
175177 signatures . push (
176- await new AnchorProvider ( squad . connection , squad . wallet , {
177- commitment : commitment ,
178- preflightCommitment : commitment ,
179- } ) . sendAndConfirm ( transaction , [ ] , { skipPreflight : true } )
178+ ...( await sendTransactions (
179+ [ { tx : transaction , signers : [ ] } ] ,
180+ squad . connection ,
181+ squad . wallet as Wallet
182+ ) )
180183 ) ;
181184 }
182185 return signatures ;
Original file line number Diff line number Diff line change 66 SYSVAR_CLOCK_PUBKEY ,
77 SystemProgram ,
88 ConfirmOptions ,
9- sendAndConfirmRawTransaction ,
109} from "@solana/web3.js" ;
1110import { BN } from "bn.js" ;
1211import { AnchorProvider } from "@coral-xyz/anchor" ;
You can’t perform that action at this time.
0 commit comments