fix: apply formatting and rebuild artifacts

This commit is contained in:
Moudy
2026-04-03 01:17:42 +02:00
parent 88e3b368c3
commit 74e16db68f
54 changed files with 319 additions and 91 deletions
+11 -4
View File
@@ -13,7 +13,9 @@ use nssa_core::program::{ProgramInput, ProgramOutput, read_nssa_inputs};
fn main() {
let (
ProgramInput { self_program_id, caller_program_id: _,
ProgramInput {
self_program_id,
caller_program_id: _,
pre_states,
instruction,
},
@@ -152,7 +154,12 @@ fn main() {
}
};
ProgramOutput::new(self_program_id, instruction_words, pre_states_clone, post_states)
.with_chained_calls(chained_calls)
.write();
ProgramOutput::new(
self_program_id,
instruction_words,
pre_states_clone,
post_states,
)
.with_chained_calls(chained_calls)
.write();
}
@@ -3,7 +3,9 @@ use nssa_core::program::{ProgramInput, ProgramOutput, read_nssa_inputs};
fn main() {
let (
ProgramInput { self_program_id, caller_program_id: _,
ProgramInput {
self_program_id,
caller_program_id: _,
pre_states,
instruction,
},
@@ -56,7 +58,12 @@ fn main() {
}
};
ProgramOutput::new(self_program_id, instruction_words, pre_states_clone, post_states)
.with_chained_calls(chained_calls)
.write();
ProgramOutput::new(
self_program_id,
instruction_words,
pre_states_clone,
post_states,
)
.with_chained_calls(chained_calls)
.write();
}
@@ -66,7 +66,9 @@ fn transfer(
fn main() {
// Read input accounts.
let (
ProgramInput { self_program_id, caller_program_id: _,
ProgramInput {
self_program_id,
caller_program_id: _,
pre_states,
instruction: balance_to_move,
},
+3 -1
View File
@@ -45,7 +45,9 @@ fn main() {
// Read input accounts.
// It is expected to receive only two accounts: [pinata_account, winner_account]
let (
ProgramInput { self_program_id, caller_program_id: _,
ProgramInput {
self_program_id,
caller_program_id: _,
pre_states,
instruction: solution,
},
@@ -51,7 +51,9 @@ fn main() {
// It is expected to receive three accounts: [pinata_definition, pinata_token_holding,
// winner_token_holding]
let (
ProgramInput { self_program_id, caller_program_id: _,
ProgramInput {
self_program_id,
caller_program_id: _,
pre_states,
instruction: solution,
},
+10 -2
View File
@@ -11,7 +11,9 @@ use token_program::core::Instruction;
fn main() {
let (
ProgramInput { self_program_id, caller_program_id: _,
ProgramInput {
self_program_id,
caller_program_id: _,
pre_states,
instruction,
},
@@ -81,5 +83,11 @@ fn main() {
}
};
ProgramOutput::new(self_program_id, instruction_words, pre_states_clone, post_states).write();
ProgramOutput::new(
self_program_id,
instruction_words,
pre_states_clone,
post_states,
)
.write();
}