mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 15:10:13 +00:00
no safety log
This commit is contained in:
@@ -4,10 +4,10 @@ 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.as_account::<Block>(&ore_api::ID)?;
|
||||
// let [signer_info] = accounts else {
|
||||
// return Err(ProgramError::NotEnoughAccountKeys);
|
||||
// };
|
||||
// signer_info.as_account::<Block>(&ore_api::ID)?;
|
||||
|
||||
// For data integrity, only a block can log messages.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user