This commit is contained in:
Hardhat Chad
2025-05-23 19:14:33 -07:00
parent 87c67f1ccb
commit 1ab3b1f73c
4 changed files with 45 additions and 5 deletions

View File

@@ -67,5 +67,13 @@ pub fn process_bet(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult {
amount,
)?;
// Emit an event.
BetEvent {
authority: *signer_info.key,
amount,
ts: clock.unix_timestamp as u64,
}
.log();
Ok(())
}