From e46ebcfdfc2dc8b1fd8188340f77b71cb265a491 Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Fri, 26 Jul 2024 22:18:20 +0000 Subject: [PATCH] fix args --- program/src/auth.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/program/src/auth.rs b/program/src/auth.rs index 8872939..0cab01b 100644 --- a/program/src/auth.rs +++ b/program/src/auth.rs @@ -3,7 +3,6 @@ use solana_program::{ account_info::AccountInfo, entrypoint::ProgramResult, program_error::ProgramError, - pubkey, pubkey::Pubkey, sanitize::SanitizeError, serialize_utils::{read_pubkey, read_u16, read_u8}, @@ -20,11 +19,7 @@ use solana_program::{ /// low as possible. Other instructions that use the declared proof handle /// validation via the loader. /// - Only one account should be provided. -pub fn process_auth<'a, 'info>( - _program_id: &Pubkey, - accounts: &'a [AccountInfo<'info>], - _data: &[u8], -) -> ProgramResult { +pub fn process_auth<'a, 'info>(accounts: &'a [AccountInfo<'info>], _data: &[u8]) -> ProgramResult { let [_proof_info] = accounts else { return Err(ProgramError::NotEnoughAccountKeys); };