mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-07 07:43:11 +00:00
20 lines
485 B
Rust
20 lines
485 B
Rust
|
|
use nssa_core::program::{AccountPostState, ProgramInput, read_nssa_inputs, write_nssa_outputs};
|
||
|
|
|
||
|
|
type Instruction = ();
|
||
|
|
|
||
|
|
fn main() {
|
||
|
|
let ProgramInput {
|
||
|
|
pre_states,
|
||
|
|
instruction: _,
|
||
|
|
} = read_nssa_inputs::<Instruction>();
|
||
|
|
|
||
|
|
let [pre] = match pre_states.try_into() {
|
||
|
|
Ok(array) => array,
|
||
|
|
Err(_) => return,
|
||
|
|
};
|
||
|
|
|
||
|
|
let account_post = AccountPostState::new_claimed(pre.account.clone());
|
||
|
|
|
||
|
|
write_nssa_outputs(vec![pre], vec![account_post]);
|
||
|
|
}
|