mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-03-29 05:33:12 +00:00
23 lines
594 B
Rust
23 lines
594 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([pre]) = <[_; 1]>::try_from(pre_states) else {
|
|
return;
|
|
};
|
|
|
|
let account_pre = &pre.account;
|
|
let mut account_post = account_pre.clone();
|
|
account_post.nonce.public_account_nonce_increment();
|
|
|
|
ProgramOutput::new(
|
|
instruction_words,
|
|
vec![pre],
|
|
vec![AccountPostState::new(account_post)],
|
|
)
|
|
.write();
|
|
}
|