mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-25 11:21:12 +00:00
fix: apply formatting and rebuild artifacts
This commit is contained in:
@@ -18,7 +18,9 @@ type Instruction = Vec<u8>;
|
||||
fn main() {
|
||||
// Read inputs
|
||||
let (
|
||||
ProgramInput { self_program_id, caller_program_id: _,
|
||||
ProgramInput {
|
||||
self_program_id,
|
||||
caller_program_id: _,
|
||||
pre_states,
|
||||
instruction: greeting,
|
||||
},
|
||||
@@ -50,5 +52,11 @@ fn main() {
|
||||
// with the NSSA program rules.
|
||||
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
||||
// called to commit the output.
|
||||
ProgramOutput::new(self_program_id, instruction_data, vec![pre_state], vec![post_state]).write();
|
||||
ProgramOutput::new(
|
||||
self_program_id,
|
||||
instruction_data,
|
||||
vec![pre_state],
|
||||
vec![post_state],
|
||||
)
|
||||
.write();
|
||||
}
|
||||
|
||||
+10
-2
@@ -18,7 +18,9 @@ type Instruction = Vec<u8>;
|
||||
fn main() {
|
||||
// Read inputs
|
||||
let (
|
||||
ProgramInput { self_program_id, caller_program_id: _,
|
||||
ProgramInput {
|
||||
self_program_id,
|
||||
caller_program_id: _,
|
||||
pre_states,
|
||||
instruction: greeting,
|
||||
},
|
||||
@@ -57,5 +59,11 @@ fn main() {
|
||||
// with the NSSA program rules.
|
||||
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
||||
// called to commit the output.
|
||||
ProgramOutput::new(self_program_id, instruction_data, vec![pre_state], vec![post_state]).write();
|
||||
ProgramOutput::new(
|
||||
self_program_id,
|
||||
instruction_data,
|
||||
vec![pre_state],
|
||||
vec![post_state],
|
||||
)
|
||||
.write();
|
||||
}
|
||||
|
||||
@@ -65,7 +65,9 @@ fn move_data(from_pre: AccountWithMetadata, to_pre: AccountWithMetadata) -> Vec<
|
||||
fn main() {
|
||||
// Read input accounts.
|
||||
let (
|
||||
ProgramInput { self_program_id, caller_program_id: _,
|
||||
ProgramInput {
|
||||
self_program_id,
|
||||
caller_program_id: _,
|
||||
pre_states,
|
||||
instruction: (function_id, data),
|
||||
},
|
||||
|
||||
@@ -26,7 +26,9 @@ fn hello_world_program_id() -> ProgramId {
|
||||
fn main() {
|
||||
// Read inputs
|
||||
let (
|
||||
ProgramInput { self_program_id, caller_program_id: _,
|
||||
ProgramInput {
|
||||
self_program_id,
|
||||
caller_program_id: _,
|
||||
pre_states,
|
||||
instruction: (),
|
||||
},
|
||||
@@ -55,7 +57,12 @@ fn main() {
|
||||
// Write the outputs.
|
||||
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
||||
// called to commit the output.
|
||||
ProgramOutput::new(self_program_id, instruction_data, vec![pre_state], vec![post_state])
|
||||
.with_chained_calls(vec![chained_call])
|
||||
.write();
|
||||
ProgramOutput::new(
|
||||
self_program_id,
|
||||
instruction_data,
|
||||
vec![pre_state],
|
||||
vec![post_state],
|
||||
)
|
||||
.with_chained_calls(vec![chained_call])
|
||||
.write();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,9 @@ fn hello_world_program_id() -> ProgramId {
|
||||
fn main() {
|
||||
// Read inputs
|
||||
let (
|
||||
ProgramInput { self_program_id, caller_program_id: _,
|
||||
ProgramInput {
|
||||
self_program_id,
|
||||
caller_program_id: _,
|
||||
pre_states,
|
||||
instruction: (),
|
||||
},
|
||||
@@ -68,7 +70,12 @@ fn main() {
|
||||
// Write the outputs.
|
||||
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
||||
// called to commit the output.
|
||||
ProgramOutput::new(self_program_id, instruction_data, vec![pre_state], vec![post_state])
|
||||
.with_chained_calls(vec![chained_call])
|
||||
.write();
|
||||
ProgramOutput::new(
|
||||
self_program_id,
|
||||
instruction_data,
|
||||
vec![pre_state],
|
||||
vec![post_state],
|
||||
)
|
||||
.with_chained_calls(vec![chained_call])
|
||||
.write();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user