Files
ore/program/src/log.rs
Hardhat Chad 1c3b1246d3 mining
2025-07-18 11:35:26 -07:00

18 lines
467 B
Rust

use ore_api::prelude::*;
use steel::*;
/// No-op, use instruction data for logging w/o truncation.
pub fn process_log(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResult {
// Load accounts.
let [signer_info] = accounts else {
return Err(ProgramError::NotEnoughAccountKeys);
};
signer_info
.is_signer()?
.as_account::<Market>(&ore_api::ID)?;
// For data integrity, only the market can log messages.
Ok(())
}