mirror of
https://github.com/d0zingcat/ore.git
synced 2026-06-04 15:11:25 +00:00
fix args
This commit is contained in:
@@ -3,7 +3,6 @@ use solana_program::{
|
|||||||
account_info::AccountInfo,
|
account_info::AccountInfo,
|
||||||
entrypoint::ProgramResult,
|
entrypoint::ProgramResult,
|
||||||
program_error::ProgramError,
|
program_error::ProgramError,
|
||||||
pubkey,
|
|
||||||
pubkey::Pubkey,
|
pubkey::Pubkey,
|
||||||
sanitize::SanitizeError,
|
sanitize::SanitizeError,
|
||||||
serialize_utils::{read_pubkey, read_u16, read_u8},
|
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
|
/// low as possible. Other instructions that use the declared proof handle
|
||||||
/// validation via the loader.
|
/// validation via the loader.
|
||||||
/// - Only one account should be provided.
|
/// - Only one account should be provided.
|
||||||
pub fn process_auth<'a, 'info>(
|
pub fn process_auth<'a, 'info>(accounts: &'a [AccountInfo<'info>], _data: &[u8]) -> ProgramResult {
|
||||||
_program_id: &Pubkey,
|
|
||||||
accounts: &'a [AccountInfo<'info>],
|
|
||||||
_data: &[u8],
|
|
||||||
) -> ProgramResult {
|
|
||||||
let [_proof_info] = accounts else {
|
let [_proof_info] = accounts else {
|
||||||
return Err(ProgramError::NotEnoughAccountKeys);
|
return Err(ProgramError::NotEnoughAccountKeys);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user