Restore approve (#591)

This commit is contained in:
guibescos 2023-02-14 05:15:04 -06:00 committed by GitHub
parent c7af4a0838
commit 301fd95781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,7 @@ import {
deriveFeeCollectorKey,
} from "@certusone/wormhole-sdk/lib/cjs/solana/wormhole";
import { ExecutePostedVaa } from "./governance_payload/ExecutePostedVaa";
import { OPS_KEY } from "./multisig";
type SquadInstruction = {
instruction: TransactionInstruction;
@ -103,6 +104,12 @@ export async function proposeInstructions(
)
);
txToSend.push(
new Transaction().add(
await squad.buildApproveTransaction(vault, newProposalAddress)
)
);
await new AnchorProvider(
squad.connection,
squad.wallet,
@ -177,7 +184,7 @@ function getPostMessageAccounts(
message,
emitter,
sequence: deriveEmitterSequenceKey(emitter, wormholeAddress),
payer: emitter,
payer: OPS_KEY,
feeCollector: deriveFeeCollectorKey(wormholeAddress),
clock: SYSVAR_CLOCK_PUBKEY,
rent: SYSVAR_RENT_PUBKEY,