mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-03-29 15:23:09 +00:00
21 lines
512 B
Rust
21 lines
512 B
Rust
use nssa_core::program::{AccountPostState, ProgramInput, ProgramOutput, read_nssa_inputs};
|
|
|
|
type Instruction = ();
|
|
|
|
fn main() {
|
|
let (ProgramInput { pre_states, .. }, instruction_words) = read_nssa_inputs::<Instruction>();
|
|
|
|
let Ok([pre1, pre2]) = <[_; 2]>::try_from(pre_states) else {
|
|
return;
|
|
};
|
|
|
|
let account_pre1 = pre1.account.clone();
|
|
|
|
ProgramOutput::new(
|
|
instruction_words,
|
|
vec![pre1, pre2],
|
|
vec![AccountPostState::new(account_pre1)],
|
|
)
|
|
.write();
|
|
}
|