mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-03-24 11:13:06 +00:00
18 lines
400 B
Rust
18 lines
400 B
Rust
use nssa_core::{account::Account, 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;
|
|
|
|
env::commit(&vec![account_pre, Account::default()]);
|
|
}
|