mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 23:16:52 +00:00
polish
This commit is contained in:
@@ -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(),
|
||||
};
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user