mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-25 03:11:21 +00:00
fix: serialize write_inputs fields separately to match guest deserialization
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
@@ -11,7 +11,8 @@ use token_program::core::Instruction;
|
||||
|
||||
fn main() {
|
||||
let (
|
||||
ProgramInput { self_program_id: _,
|
||||
ProgramInput {
|
||||
self_program_id: _,
|
||||
pre_states,
|
||||
instruction,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user