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";
24
24
import {
25
25
TransactionBuilder ,
26
26
PriorityFeeConfig ,
27
+ sendTransactions ,
27
28
} from "@pythnetwork/solana-utils" ;
28
29
import {
29
30
findDetermisticPublisherBufferAddress ,
30
31
PRICE_STORE_BUFFER_SPACE ,
31
32
PRICE_STORE_PROGRAM_ID ,
32
33
PriceStoreMultisigInstruction ,
33
34
} from "./price_store" ;
35
+ import { Wallet } from "@coral-xyz/anchor" ;
34
36
35
37
/**
36
38
* Returns the instruction to pay the fee for a wormhole postMessage instruction
@@ -173,10 +175,11 @@ export async function executeProposal(
173
175
) ;
174
176
175
177
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
+ ) )
180
183
) ;
181
184
}
182
185
return signatures ;
Original file line number Diff line number Diff line change 6
6
SYSVAR_CLOCK_PUBKEY ,
7
7
SystemProgram ,
8
8
ConfirmOptions ,
9
- sendAndConfirmRawTransaction ,
10
9
} from "@solana/web3.js" ;
11
10
import { BN } from "bn.js" ;
12
11
import { AnchorProvider } from "@coral-xyz/anchor" ;
You can’t perform that action at this time.
0 commit comments