mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-08 08:13:08 +00:00
18 lines
417 B
Rust
18 lines
417 B
Rust
|
|
use nssa_core::account::{Account, AccountWithMetadata};
|
||
|
|
use risc0_zkvm::guest::env;
|
||
|
|
|
||
|
|
fn main() {
|
||
|
|
let input_accounts: Vec<AccountWithMetadata> = env::read();
|
||
|
|
let _instruction_data: u128 = env::read();
|
||
|
|
|
||
|
|
let [pre] = match input_accounts.try_into() {
|
||
|
|
Ok(array) => array,
|
||
|
|
Err(_) => return,
|
||
|
|
};
|
||
|
|
|
||
|
|
let account_pre = pre.account;
|
||
|
|
|
||
|
|
env::commit(&vec![account_pre, Account::default()]);
|
||
|
|
}
|
||
|
|
|