use Timestamp instead of u64

This commit is contained in:
Sergio Chouhy 2026-04-06 12:57:50 -03:00
parent 015999b3a5
commit ed1926b38a
2 changed files with 6 additions and 3 deletions

View File

@ -1,9 +1,12 @@
use nssa_core::program::{
AccountPostState, ChainedCall, ProgramId, ProgramInput, ProgramOutput, read_nssa_inputs,
use nssa_core::{
Timestamp,
program::{
AccountPostState, ChainedCall, ProgramId, ProgramInput, ProgramOutput, read_nssa_inputs,
},
};
use risc0_zkvm::serde::to_vec;
type Instruction = (ProgramId, u64); // (clock_program_id, timestamp)
type Instruction = (ProgramId, Timestamp); // (clock_program_id, timestamp)
/// A program that chain-calls the clock program with the clock accounts it received as pre-states.
/// Used in tests to verify that user transactions cannot modify clock accounts, even indirectly