This commit is contained in:
Hardhat Chad
2024-02-14 17:01:30 +00:00
parent f917e49b3f
commit bbc1d835ea
21 changed files with 248 additions and 171 deletions

View File

@@ -1,7 +1,7 @@
use std::str::FromStr;
use ore::{
instruction::{MineArgs, OreInstruction, ProofArgs},
instruction::{CreateProofArgs, MineArgs, OreInstruction},
state::{Proof, Treasury},
BUS, PROOF, TREASURY,
};
@@ -34,8 +34,8 @@ async fn test_mine() {
AccountMeta::new_readonly(system_program::id(), false),
],
data: [
OreInstruction::Proof.to_vec(),
ProofArgs { bump: proof_pda.1 }.to_bytes().to_vec(),
OreInstruction::CreateProof.to_vec(),
CreateProofArgs { bump: proof_pda.1 }.to_bytes().to_vec(),
]
.concat(),
};

View File

@@ -24,7 +24,7 @@ use solana_sdk::{
use spl_token::state::{AccountState, Mint};
#[tokio::test]
async fn test_epoch() {
async fn test_reset() {
// Setup
let (mut banks, payer, hash) = setup_program_test_env().await;
@@ -62,7 +62,7 @@ async fn test_epoch() {
AccountMeta::new(treasury_tokens_address, false),
AccountMeta::new_readonly(spl_token::id(), false),
],
data: [OreInstruction::Epoch.to_vec()].concat(),
data: [OreInstruction::Reset.to_vec()].concat(),
};
// Submit tx