Skip to content

Commit f3d8a03

Browse files
authored
fix: executor (#1926)
* fix: executor * go
1 parent b87ccc9 commit f3d8a03

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

governance/xc_admin/packages/xc_admin_common/src/executor.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ import { AnchorProvider } from "@project-serum/anchor";
2424
import {
2525
TransactionBuilder,
2626
PriorityFeeConfig,
27+
sendTransactions,
2728
} from "@pythnetwork/solana-utils";
2829
import {
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;

governance/xc_admin/packages/xc_admin_common/src/propose.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
SYSVAR_CLOCK_PUBKEY,
77
SystemProgram,
88
ConfirmOptions,
9-
sendAndConfirmRawTransaction,
109
} from "@solana/web3.js";
1110
import { BN } from "bn.js";
1211
import { AnchorProvider } from "@coral-xyz/anchor";

0 commit comments

Comments
 (0)