Get into the habit of sysvar/system accounts at the bottom

Change-Id: I124fdfc22404f6afa12180e6a7ce0afe6bc26f8d
This commit is contained in:
Reisen 2021-05-04 02:05:14 +00:00
parent edc8a91ecd
commit b0e7e363c5
1 changed files with 6 additions and 6 deletions

View File

@ -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>,