mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-06 15:23:10 +00:00
14 lines
442 B
Rust
14 lines
442 B
Rust
use nssa_core::program::{AccountPostState, ProgramInput, read_nssa_inputs, write_nssa_outputs};
|
|
|
|
type Instruction = ();
|
|
|
|
fn main() {
|
|
let (ProgramInput { pre_states, .. }, instruction_words) = read_nssa_inputs::<Instruction>();
|
|
|
|
let post_states = pre_states
|
|
.iter()
|
|
.map(|account| AccountPostState::new(account.account.clone()))
|
|
.collect();
|
|
write_nssa_outputs(instruction_words, pre_states, post_states);
|
|
}
|