2025-08-14 14:30:04 -03:00
|
|
|
use nssa_core::program::{read_nssa_inputs, write_nssa_outputs, ProgramInput};
|
2025-08-10 09:57:10 -03:00
|
|
|
|
2025-08-10 18:59:29 -03:00
|
|
|
type Instruction = ();
|
2025-08-10 18:51:55 -03:00
|
|
|
|
2025-08-10 09:57:10 -03:00
|
|
|
fn main() {
|
2025-08-14 14:30:04 -03:00
|
|
|
let ProgramInput { pre_states, .. } = read_nssa_inputs::<Instruction>();
|
2025-08-10 09:57:10 -03:00
|
|
|
|
2025-09-02 14:09:50 -03:00
|
|
|
let [pre1, pre2] = match pre_states.try_into() {
|
2025-08-10 09:57:10 -03:00
|
|
|
Ok(array) => array,
|
|
|
|
|
Err(_) => return,
|
|
|
|
|
};
|
|
|
|
|
|
2025-08-14 14:09:04 -03:00
|
|
|
let account_pre1 = pre1.account.clone();
|
2025-08-10 09:57:10 -03:00
|
|
|
|
2025-09-02 14:09:50 -03:00
|
|
|
write_nssa_outputs(vec![pre1, pre2], vec![account_pre1]);
|
2025-08-10 09:57:10 -03:00
|
|
|
}
|