little fix

This commit is contained in:
Hardhat Chad
2024-02-15 20:29:19 +00:00
parent e5e39364dc
commit c9e24ce015
7 changed files with 111 additions and 165 deletions

View File

@@ -1,15 +1,15 @@
mod claim;
mod create_proof;
mod initialize;
mod mine;
mod register;
mod reset;
mod update_admin;
mod update_difficulty;
pub use claim::*;
pub use create_proof::*;
pub use initialize::*;
pub use mine::*;
pub use register::*;
pub use reset::*;
pub use update_admin::*;
pub use update_difficulty::*;

View File

@@ -6,7 +6,7 @@ use solana_program::{
};
use crate::{
instruction::CreateProofArgs,
instruction::RegisterArgs,
loaders::*,
state::Proof,
utils::AccountDeserialize,
@@ -14,13 +14,13 @@ use crate::{
PROOF,
};
pub fn process_create_proof<'a, 'info>(
pub fn process_register<'a, 'info>(
_program_id: &Pubkey,
accounts: &'a [AccountInfo<'info>],
data: &[u8],
) -> ProgramResult {
// Parse args
let args = CreateProofArgs::try_from_bytes(data)?;
let args = RegisterArgs::try_from_bytes(data)?;
// Load accounts
let [signer, proof_info, system_program] = accounts else {