From ed1926b38a6200b023ddfb31cd8e5783f5855703 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Mon, 6 Apr 2026 12:57:50 -0300 Subject: [PATCH] use Timestamp instead of u64 --- .../clock_chain_caller.bin | Bin 392504 -> 392504 bytes .../guest/src/bin/clock_chain_caller.rs | 9 ++++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/artifacts/test_program_methods/clock_chain_caller.bin b/artifacts/test_program_methods/clock_chain_caller.bin index d836f2c909d559b194c742b855515948bc41e122..238225e4236f1cd063fc5f9b362be840d7548563 100644 GIT binary patch delta 373 zcmdn-OMJ&K@rD-0Elei9f(i@_3?O_ZMv1`!NXxgo`Z57A^LAHX7W*b)a}!fDLsLr= z3sXxY3sW;oGjo&ab(dI-r=L2{vKE`{_O1&o4;it^fbq>S`(a>{b`u-Gvj bEN_foe)_!YEbQ1!Z{Km9W&4intPQFF$LeKE delta 373 zcmdn-OMJ&K@rD-0Elei9g0c(@3<^MeB}R$C0!YiWyZSN#G4pm;Ul#i&VM7xWV?%Qz z17mYb6C-m=BU1y*>2;S_jHjPE&$1Sq?Dnn;EDss6$$<0~W0eT_&Z0G4?=njRR@sA> zS@fl_xPu`+%FocyaJt+N7OCmxBCPz|jjym|GhsDj<24pNtP()OHKdI6a&pRY^|076 c9V~B*Uw-<$>n!ZpOmE+Don`xu>#Pl`0M}Y$@Bjb+ diff --git a/test_program_methods/guest/src/bin/clock_chain_caller.rs b/test_program_methods/guest/src/bin/clock_chain_caller.rs index c6b2d386..582e228e 100644 --- a/test_program_methods/guest/src/bin/clock_chain_caller.rs +++ b/test_program_methods/guest/src/bin/clock_chain_caller.rs @@ -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