diff --git a/api/src/instruction.rs b/api/src/instruction.rs index a6d5ec3..01c9ff0 100644 --- a/api/src/instruction.rs +++ b/api/src/instruction.rs @@ -248,7 +248,7 @@ pub fn crown(signer: Pubkey, current_top_staker: Pubkey) -> Instruction { /// Builds a mine instruction. pub fn mine( - miner: Pubkey, + signer: Pubkey, proof_authority: Pubkey, bus: Pubkey, solution: Solution, @@ -257,7 +257,7 @@ pub fn mine( Instruction { program_id: crate::id(), accounts: vec![ - AccountMeta::new(miner, true), + AccountMeta::new(signer, true), AccountMeta::new(bus, false), AccountMeta::new_readonly(CONFIG_ADDRESS, false), AccountMeta::new(proof, false), diff --git a/api/src/loaders.rs b/api/src/loaders.rs index 0f68979..90f13ed 100644 --- a/api/src/loaders.rs +++ b/api/src/loaders.rs @@ -262,6 +262,7 @@ pub fn load_treasury_tokens<'a, 'info>( if info.key.ne(&TREASURY_TOKENS_ADDRESS) { return Err(ProgramError::InvalidSeeds); } + load_token_account(info, Some(&TREASURY_ADDRESS), &MINT_ADDRESS, is_writable) }