Skip to content

Commit

Permalink
fix: executor (#1926)
Browse files Browse the repository at this point in the history
* fix: executor

* go
  • Loading branch information
guibescos authored Sep 17, 2024
1 parent b87ccc9 commit f3d8a03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 7 additions & 4 deletions governance/xc_admin/packages/xc_admin_common/src/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ import { AnchorProvider } from "@project-serum/anchor";
import {
TransactionBuilder,
PriorityFeeConfig,
sendTransactions,
} from "@pythnetwork/solana-utils";
import {
findDetermisticPublisherBufferAddress,
PRICE_STORE_BUFFER_SPACE,
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
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit f3d8a03

Please sign in to comment.