Skip to content

Commit 79eefa0

Browse files
committed
solana: some clean up
1 parent ea721dc commit 79eefa0

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

solana/migrations/deploy.ts

-12
This file was deleted.

solana/programs/example-native-token-transfers/src/endpoints/accounts/sibling.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use anchor_lang::prelude::*;
55
/// A sibling on another chain. Stored in a PDA seeded by the chain id.
66
pub struct EndpointSibling {
77
pub bump: u8,
8-
// TODO: variable address length?
98
pub address: [u8; 32],
109
}
1110

solana/programs/example-native-token-transfers/src/endpoints/wormhole/instructions/receive_message.rs

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ pub struct ReceiveMessage<'info> {
2828
)]
2929
pub sibling: Account<'info, EndpointSibling>,
3030

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

solana/programs/example-native-token-transfers/src/endpoints/wormhole/instructions/redeem.rs

Whitespace-only changes.

0 commit comments

Comments
 (0)