18 lines
408 B
Rust
Raw Normal View History

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