This commit is contained in:
Hardhat Chad
2025-09-19 10:17:19 -07:00
parent 336cb557aa
commit d8f8f49f72
7 changed files with 118 additions and 39 deletions

15
program/src/log.rs Normal file
View File

@@ -0,0 +1,15 @@
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::<Board>(&ore_api::ID)?;
// For data integrity, only the board can log messages.
Ok(())
}