Skip to content

Commit

Permalink
Add missing signer check (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass authored Jan 30, 2025
1 parent 468cbed commit cb46a0a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions programs/nft_proxy/src/instructions/update_proxy_config_v0.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
use crate::error::ErrorCode;
use crate::resize_to_fit::resize_to_fit;
use crate::state::{ProxyConfigV0, SeasonV0};
use anchor_lang::prelude::*;

use crate::{
error::ErrorCode,
resize_to_fit::resize_to_fit,
state::{ProxyConfigV0, SeasonV0},
};

#[derive(AnchorSerialize, AnchorDeserialize)]
pub struct UpdateProxyConfigArgsV0 {
pub max_proxy_time: Option<i64>,
Expand All @@ -15,7 +18,7 @@ pub struct UpdateProxyConfigV0<'info> {
#[account(mut)]
pub payer: Signer<'info>,
/// CHECK: The authority of this config
pub authority: AccountInfo<'info>,
pub authority: Signer<'info>,
#[account(
mut,
has_one = authority
Expand Down

0 comments on commit cb46a0a

Please sign in to comment.