Skip to content

Commit

Permalink
solana: some clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kcsongor committed Feb 22, 2024
1 parent ea721dc commit 79eefa0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
12 changes: 0 additions & 12 deletions solana/migrations/deploy.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use anchor_lang::prelude::*;
/// A sibling on another chain. Stored in a PDA seeded by the chain id.
pub struct EndpointSibling {
pub bump: u8,
// TODO: variable address length?
pub address: [u8; 32],
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ pub struct ReceiveMessage<'info> {
)]
pub sibling: Account<'info, EndpointSibling>,

// TODO: Consider using VaaAccount from wormhole-solana-vaa crate. Using a zero-copy reader
// will allow this instruction to be generic (instead of strictly specifying NativeTokenTransfer
// as the message type).
#[account(
// check that the messages is targeted to this chain
constraint = vaa.message().manager_payload.payload.to_chain == config.chain_id @ NTTError::InvalidChainId,
Expand Down
Empty file.

0 comments on commit 79eefa0

Please sign in to comment.