mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-17 15:10:21 +00:00
5x5
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
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(())
|
||||
}
|
||||
Reference in New Issue
Block a user