2026-03-25 16:56:04 -03:00
|
|
|
use nssa_core::program::{AccountPostState, ProgramInput, ProgramOutput, read_nssa_inputs};
|
2025-08-10 00:53:53 -03:00
|
|
|
|
2025-08-10 18:59:29 -03:00
|
|
|
type Instruction = ();
|
2025-08-10 18:51:55 -03:00
|
|
|
|
2025-08-10 00:53:53 -03:00
|
|
|
fn main() {
|
2025-12-16 17:44:10 +03:00
|
|
|
let (ProgramInput { pre_states, .. }, instruction_words) = read_nssa_inputs::<Instruction>();
|
2025-08-10 00:53:53 -03:00
|
|
|
|
2026-03-03 23:21:08 +03:00
|
|
|
let Ok([pre]) = <[_; 1]>::try_from(pre_states) else {
|
|
|
|
|
return;
|
2025-08-10 00:53:53 -03:00
|
|
|
};
|
|
|
|
|
|
2025-08-14 14:09:04 -03:00
|
|
|
let account_pre = &pre.account;
|
2026-03-02 16:27:11 -05:00
|
|
|
let mut account_post = account_pre.clone();
|
2026-03-02 11:54:41 -05:00
|
|
|
account_post.nonce.public_account_nonce_increment();
|
2025-08-10 00:53:53 -03:00
|
|
|
|
2026-03-25 16:56:04 -03:00
|
|
|
ProgramOutput::new(instruction_words, vec![pre], vec![AccountPostState::new(account_post)])
|
|
|
|
|
.write();
|
2025-08-10 00:53:53 -03:00
|
|
|
}
|