This commit is contained in:
Hardhat Chad
2025-08-04 15:00:57 -07:00
parent 2720f3ee42
commit afe3166b12

View File

@@ -46,14 +46,13 @@ pub fn initialize(signer: Pubkey) -> Instruction {
}
}
pub fn mine(signer: Pubkey, authority: Pubkey, id: u64, nonce: u64) -> Instruction {
pub fn mine(signer: Pubkey, id: u64, nonce: u64) -> Instruction {
let block_adddress = block_pda(id).0;
let miner_address = miner_pda(authority).0;
let miner_address = miner_pda(signer).0;
Instruction {
program_id: crate::ID,
accounts: vec![
AccountMeta::new(signer, true),
AccountMeta::new(authority, false),
AccountMeta::new(block_adddress, false),
AccountMeta::new(miner_address, false),
],