Get into the habit of sysvar/system accounts at the bottom
Change-Id: I124fdfc22404f6afa12180e6a7ce0afe6bc26f8d
This commit is contained in:
parent
edc8a91ecd
commit
b0e7e363c5
|
@ -77,12 +77,6 @@ pub struct InitializeData {
|
||||||
|
|
||||||
#[derive(Accounts)]
|
#[derive(Accounts)]
|
||||||
pub struct PublishMessage<'info> {
|
pub struct PublishMessage<'info> {
|
||||||
/// Clock used for timestamping.
|
|
||||||
pub clock: Sysvar<'info, Clock>,
|
|
||||||
|
|
||||||
/// Instructions used for transaction reflection.
|
|
||||||
pub instructions: AccountInfo<'info>,
|
|
||||||
|
|
||||||
/// Derived account verified to match the expected pubkey via Bridge::check_and_create_account.
|
/// Derived account verified to match the expected pubkey via Bridge::check_and_create_account.
|
||||||
#[account(init)]
|
#[account(init)]
|
||||||
pub message: AccountInfo<'info>,
|
pub message: AccountInfo<'info>,
|
||||||
|
@ -96,6 +90,12 @@ pub struct PublishMessage<'info> {
|
||||||
#[account(signer)]
|
#[account(signer)]
|
||||||
pub emitter: AccountInfo<'info>,
|
pub emitter: AccountInfo<'info>,
|
||||||
|
|
||||||
|
/// Instructions used for transaction reflection.
|
||||||
|
pub instructions: AccountInfo<'info>,
|
||||||
|
|
||||||
|
/// Clock used for timestamping.
|
||||||
|
pub clock: Sysvar<'info, Clock>,
|
||||||
|
|
||||||
/// Required by Anchor for associated accounts.
|
/// Required by Anchor for associated accounts.
|
||||||
pub rent: Sysvar<'info, Rent>,
|
pub rent: Sysvar<'info, Rent>,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue