From 0597bc159663c9f0ab82cf0bcb0434f3d372accc Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Tue, 9 Sep 2025 18:13:37 -0700 Subject: [PATCH] update sdk --- api/src/sdk.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/src/sdk.rs b/api/src/sdk.rs index 2adb1c1..dcf1ed8 100644 --- a/api/src/sdk.rs +++ b/api/src/sdk.rs @@ -49,12 +49,15 @@ pub fn initialize(signer: Pubkey) -> Instruction { pub fn mine(signer: Pubkey, id: u64, nonce: u64) -> Instruction { let block_adddress = block_pda(id).0; let miner_address = miner_pda(signer).0; + let market_address = market_pda().0; Instruction { program_id: crate::ID, accounts: vec![ AccountMeta::new(signer, true), AccountMeta::new(block_adddress, false), + AccountMeta::new(market_address, false), AccountMeta::new(miner_address, false), + AccountMeta::new_readonly(crate::ID, false), ], data: Mine { nonce: nonce.to_le_bytes(),