no truncation logs

This commit is contained in:
Hardhat Chad
2025-07-10 08:42:32 -07:00
parent 6955c33aba
commit 8c5fcb02ce
12 changed files with 168 additions and 95 deletions

View File

@@ -1,4 +1,4 @@
use ore_api::prelude::*;
use ore_api::{prelude::*, sdk::program_log};
use steel::*;
/// Swap in a hashpower market.
@@ -137,7 +137,7 @@ pub fn process_swap(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult
market.check_vaults(&vault_base, &vault_quote)?;
// Emit event.
swap_event.log_return();
program_log(block.id, block_info.clone(), &swap_event.to_bytes())?;
Ok(())
}