This commit is contained in:
alex
2024-07-12 15:37:50 -07:00
parent 70a8c59688
commit f10d175707
2 changed files with 3 additions and 2 deletions

View File

@@ -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),

View File

@@ -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)
}