error + 300

This commit is contained in:
alex
2024-07-09 11:16:27 -07:00
parent d19dc0b7d5
commit 087b83131c
2 changed files with 3 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ pub enum OreError {
impl From<OreError> for ProgramError {
fn from(e: OreError) -> Self {
ProgramError::Custom(e as u32)
let f = (e as u32) + 300;
ProgramError::Custom(f)
}
}

View File

@@ -10,4 +10,4 @@ pub(crate) use ore_utils as utils;
use solana_program::declare_id;
// declare_id!("mineRHF5r6S7HyD9SppBfVMXMavDkJsxwGesEvxZr2A");
declare_id!("D79kvBCKwUJxQjrVk1Jf34R1erLTAaAmFW9eqmYbGDqp");
declare_id!("7LARaw2QJCftkGR14QVV6NSj3MFZM9iUL4GfSKySXphJ");