mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-15 07:26:45 +00:00
little fix
This commit is contained in:
@@ -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::*;
|
||||
|
||||
@@ -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 {
|
||||
Reference in New Issue
Block a user