mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-04 14:23:11 +00:00
13 lines
431 B
Rust
13 lines
431 B
Rust
use nssa_core::program::{read_nssa_inputs, write_nssa_outputs, ProgramInput, AccountPostState};
|
|
|
|
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);
|
|
}
|