Always log sequence

Change-Id: I0fe6e2f0f564f719b6207067b7824e395e91a65c
This commit is contained in:
Hendrik Hofstadt 2021-08-09 14:23:13 +02:00
parent 2f8a73fdda
commit 24e5406e84
1 changed files with 4 additions and 2 deletions

View File

@ -57,8 +57,7 @@ pub struct PostMessage<'b> {
pub clock: Sysvar<'b, Clock>,
}
impl<'b> InstructionContext<'b> for PostMessage<'b> {
}
impl<'b> InstructionContext<'b> for PostMessage<'b> {}
#[derive(BorshDeserialize, BorshSerialize)]
pub struct PostMessageData {
@ -111,6 +110,9 @@ pub fn post_message(
.create(&(&*accs).into(), ctx, accs.payer.key, Exempt)?;
}
// DO NOT REMOVE - CRITICAL OUTPUT
msg!("Sequence: {}", accs.sequence.sequence);
// Initialize transfer
trace!("Setting Message Details");
accs.message.submission_time = accs.clock.unix_timestamp as u32;