mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-03-28 05:03:29 +00:00
22 lines
538 B
Rust
22 lines
538 B
Rust
use nssa_core::program::{AccountPostState, ProgramInput, ProgramOutput, read_nssa_inputs};
|
|
|
|
type Instruction = ();
|
|
|
|
fn main() {
|
|
let (
|
|
ProgramInput {
|
|
pre_states,
|
|
instruction: (),
|
|
},
|
|
instruction_words,
|
|
) = read_nssa_inputs::<Instruction>();
|
|
|
|
let Ok([pre]) = <[_; 1]>::try_from(pre_states) else {
|
|
return;
|
|
};
|
|
|
|
let account_post = AccountPostState::new_claimed(pre.account.clone());
|
|
|
|
ProgramOutput::new(instruction_words, vec![pre], vec![account_post]).write();
|
|
}
|