no safety log

This commit is contained in:
Hardhat Chad
2025-07-10 13:18:38 -07:00
parent 8c5fcb02ce
commit bcded199a8

View File

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