Skip to content

Commit 301fd95

Browse files
authored
Restore approve (#591)
1 parent c7af4a0 commit 301fd95

File tree

1 file changed

+8
-1
lines changed
  • governance/xc_admin/packages/xc_admin_common/src

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
deriveFeeCollectorKey,
1717
} from "@certusone/wormhole-sdk/lib/cjs/solana/wormhole";
1818
import { ExecutePostedVaa } from "./governance_payload/ExecutePostedVaa";
19+
import { OPS_KEY } from "./multisig";
1920

2021
type SquadInstruction = {
2122
instruction: TransactionInstruction;
@@ -103,6 +104,12 @@ export async function proposeInstructions(
103104
)
104105
);
105106

107+
txToSend.push(
108+
new Transaction().add(
109+
await squad.buildApproveTransaction(vault, newProposalAddress)
110+
)
111+
);
112+
106113
await new AnchorProvider(
107114
squad.connection,
108115
squad.wallet,
@@ -177,7 +184,7 @@ function getPostMessageAccounts(
177184
message,
178185
emitter,
179186
sequence: deriveEmitterSequenceKey(emitter, wormholeAddress),
180-
payer: emitter,
187+
payer: OPS_KEY,
181188
feeCollector: deriveFeeCollectorKey(wormholeAddress),
182189
clock: SYSVAR_CLOCK_PUBKEY,
183190
rent: SYSVAR_RENT_PUBKEY,

0 commit comments

Comments
 (0)