mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
log load treasury tokens
This commit is contained in:
@@ -10,4 +10,4 @@ pub(crate) use ore_utils as utils;
|
||||
use solana_program::declare_id;
|
||||
|
||||
// declare_id!("mineRHF5r6S7HyD9SppBfVMXMavDkJsxwGesEvxZr2A");
|
||||
declare_id!("EcZSwrCoS7bgstnUMdELZGno2riZ6mhW8hvRbq6vUCNm");
|
||||
declare_id!("2LL8td7HYkNk2TMEREpkAgGk7dUxp1QmDaoypDRHkuj5");
|
||||
|
||||
@@ -271,9 +271,15 @@ pub fn load_treasury_tokens<'a, 'info>(
|
||||
info: &'a AccountInfo<'info>,
|
||||
is_writable: bool,
|
||||
) -> Result<(), ProgramError> {
|
||||
sol_log(&format!("key: {}", info.key.to_string()));
|
||||
sol_log(&format!(
|
||||
"treasury tokens address: {}",
|
||||
TREASURY_TOKENS_ADDRESS.to_string()
|
||||
));
|
||||
if info.key.ne(&TREASURY_TOKENS_ADDRESS) {
|
||||
return Err(ProgramError::InvalidSeeds);
|
||||
}
|
||||
sol_log("validated");
|
||||
|
||||
load_token_account(info, Some(&TREASURY_ADDRESS), &MINT_ADDRESS, is_writable)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user