Skip to content

Commit

Permalink
solana: Update accounts needed for releaseWormholeOutbound
Browse files Browse the repository at this point in the history
  • Loading branch information
nvsriram committed Oct 17, 2024
1 parent c905e45 commit c762433
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solana/ts/lib/ntt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export namespace NTT {
/** pdas returns an object containing all functions to compute program addresses */
export const transceiverPdas = (programId: PublicKeyInitData) => {
const emitterAccount = (): PublicKey => derivePda("emitter", programId);
const outboxItemSigner = () => derivePda(["outbox_item_signer"], programId);
const transceiverPeerAccount = (chain: Chain): PublicKey =>
derivePda(["transceiver_peer", chainToBytes(chain)], programId);
const transceiverMessageAccount = (
Expand All @@ -156,6 +157,7 @@ export namespace NTT {
// TODO: memoize?
return {
emitterAccount,
outboxItemSigner,
transceiverPeerAccount,
transceiverMessageAccount,
wormholeMessageAccount,
Expand Down
2 changes: 2 additions & 0 deletions solana/ts/sdk/ntt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ export class SolanaNttWormholeTransceiver<
sequence: whAccs.wormholeSequence,
program: this.manager.core.address,
},
manager: this.manager.program.programId,
outboxItemSigner: this.pdas.outboxItemSigner(),
})
.instruction();
}
Expand Down

0 comments on commit c762433

Please sign in to comment.