mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-07 15:53:14 +00:00
17 lines
459 B
Rust
17 lines
459 B
Rust
use nssa_core::program::{AccountPostState, ProgramInput, read_nssa_inputs, write_nssa_outputs};
|
|
|
|
type Instruction = ();
|
|
|
|
fn main() {
|
|
let ProgramInput { pre_states, .. } = read_nssa_inputs::<Instruction>();
|
|
|
|
let [pre1, pre2] = match pre_states.try_into() {
|
|
Ok(array) => array,
|
|
Err(_) => return,
|
|
};
|
|
|
|
let account_pre1 = pre1.account.clone();
|
|
|
|
write_nssa_outputs(vec![pre1, pre2], vec![AccountPostState::new(account_pre1)]);
|
|
}
|