fix: cargo fmt

This commit is contained in:
Moudy
2026-04-02 20:30:27 +02:00
parent 7def0c4664
commit 702ef4a46f
28 changed files with 163 additions and 50 deletions
+10 -4
View File
@@ -13,7 +13,8 @@ use nssa_core::program::{ProgramInput, ProgramOutput, read_nssa_inputs};
fn main() {
let (
ProgramInput { self_program_id,
ProgramInput {
self_program_id,
pre_states,
instruction,
},
@@ -152,7 +153,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,8 @@ use nssa_core::program::{ProgramInput, ProgramOutput, read_nssa_inputs};
fn main() {
let (
ProgramInput { self_program_id,
ProgramInput {
self_program_id,
pre_states,
instruction,
},
@@ -56,7 +57,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,8 @@ fn transfer(
fn main() {
// Read input accounts.
let (
ProgramInput { self_program_id,
ProgramInput {
self_program_id,
pre_states,
instruction: balance_to_move,
},
+2 -1
View File
@@ -45,7 +45,8 @@ fn main() {
// Read input accounts.
// It is expected to receive only two accounts: [pinata_account, winner_account]
let (
ProgramInput { self_program_id,
ProgramInput {
self_program_id,
pre_states,
instruction: solution,
},
@@ -51,7 +51,8 @@ fn main() {
// It is expected to receive three accounts: [pinata_definition, pinata_token_holding,
// winner_token_holding]
let (
ProgramInput { self_program_id,
ProgramInput {
self_program_id,
pre_states,
instruction: solution,
},
+9 -2
View File
@@ -11,7 +11,8 @@ use token_program::core::Instruction;
fn main() {
let (
ProgramInput { self_program_id,
ProgramInput {
self_program_id,
pre_states,
instruction,
},
@@ -81,5 +82,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();
}