Skip to content

Commit

Permalink
hub update
Browse files Browse the repository at this point in the history
  • Loading branch information
facing-n committed Dec 1, 2023
1 parent 0160771 commit 880ff02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions programs/nina/src/instructions/hub_update_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ use crate::errors::ErrorCode;
pub struct HubUpdateConfig<'info> {
#[account(mut)]
pub payer: Signer<'info>,
#[account(mut)]
pub authority: Signer<'info>,
/// CHECK: This is safe because we check in the handler that authority === payer
/// or that payer is nina operated file-service wallet
pub authority: UncheckedAccount<'info>,
#[account(
mut,
constraint = hub.load()?.authority == authority.key(),
Expand Down

0 comments on commit 880ff02

Please sign in to comment.