From 880ff02cb2ed72a42ed9f5e3fdafe1b021b08b80 Mon Sep 17 00:00:00 2001 From: facing-n Date: Thu, 30 Nov 2023 21:24:20 -0500 Subject: [PATCH] hub update --- programs/nina/src/instructions/hub_update_config.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/nina/src/instructions/hub_update_config.rs b/programs/nina/src/instructions/hub_update_config.rs index c35b7fb5..5904fd4d 100644 --- a/programs/nina/src/instructions/hub_update_config.rs +++ b/programs/nina/src/instructions/hub_update_config.rs @@ -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(),