18 lines
367 B
Rust
Raw Normal View History

2025-08-10 18:51:55 -03:00
use nssa_core::program::read_nssa_inputs;
2025-08-10 09:57:10 -03:00
use risc0_zkvm::guest::env;
2025-08-10 18:59:29 -03:00
type Instruction = ();
2025-08-10 18:51:55 -03:00
2025-08-10 09:57:10 -03:00
fn main() {
2025-08-10 18:59:29 -03:00
let (input_accounts, _) = read_nssa_inputs::<Instruction>();
2025-08-10 09:57:10 -03:00
2025-08-10 10:09:23 -03:00
let [pre1, _] = match input_accounts.try_into() {
2025-08-10 09:57:10 -03:00
Ok(array) => array,
Err(_) => return,
};
2025-08-10 10:09:23 -03:00
let account_pre1 = pre1.account;
2025-08-10 09:57:10 -03:00
2025-08-10 10:09:23 -03:00
env::commit(&vec![account_pre1]);
2025-08-10 09:57:10 -03:00
}