fix depoy

This commit is contained in:
Hardhat Chad
2025-10-14 11:29:47 -07:00
parent a3a1cf7962
commit 4e3ecff458
3 changed files with 13 additions and 13 deletions

View File

@@ -94,8 +94,8 @@ pub fn process_deploy(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResul
miner.cumulative = [0; 25];
miner.rewards_sol = 0;
miner.rewards_ore = 0;
miner.round_id = round.id;
miner.checkpoint_id = round.id;
miner.round_id = 0;
miner.checkpoint_id = 0;
miner.lifetime_rewards_sol = 0;
miner.lifetime_rewards_ore = 0;
miner

View File

@@ -12,7 +12,7 @@ pub fn process_wrap(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResult
signer_info.is_signer()?;
config_info
.as_account::<Config>(&ore_api::ID)?
.assert(|c| c.admin == *signer_info.key)?;
.assert(|c| c.bury_authority == *signer_info.key)?;
let treasury = treasury_info.as_account_mut::<Treasury>(&ore_api::ID)?;
treasury_sol_info
.is_writable()?