mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-14 03:03:12 +00:00
21 lines
441 B
Rust
21 lines
441 B
Rust
use nssa_core::program::read_nssa_inputs;
|
|
use risc0_zkvm::guest::env;
|
|
|
|
type Instruction = ();
|
|
|
|
fn main() {
|
|
let (input_accounts, _) = read_nssa_inputs::<Instruction>();
|
|
|
|
let [pre] = match input_accounts.try_into() {
|
|
Ok(array) => array,
|
|
Err(_) => return,
|
|
};
|
|
|
|
let account_pre = pre.account;
|
|
let mut account_post = account_pre.clone();
|
|
account_post.data.push(0);
|
|
|
|
env::commit(&vec![account_post]);
|
|
}
|
|
|