refactor!: carry zkVM instruction_data as borsh bytes end-to-end

This commit is contained in:
Artem Gureev
2026-08-23 09:35:23 +00:00
parent 0560270146
commit 5a393d2bff
58 changed files with 147 additions and 285 deletions
@@ -8,6 +8,7 @@ license = { workspace = true }
workspace = true
[dependencies]
borsh.workspace = true
lee_core.workspace = true
hex.workspace = true
@@ -46,7 +46,7 @@ fn main() {
// Create the chained call
let chained_call_greeting: Vec<u8> = b"Hello from tail call".to_vec();
let chained_call_instruction_data = risc0_zkvm::serde::to_vec(&chained_call_greeting).unwrap();
let chained_call_instruction_data = borsh::to_vec(&chained_call_greeting).unwrap();
let chained_call = ChainedCall {
program_id: hello_world_program_id(),
instruction_data: chained_call_instruction_data,
@@ -51,7 +51,7 @@ fn main() {
// Create the chained call
let chained_call_greeting: Vec<u8> =
b"Hello from tail call with Program Derived Account ID".to_vec();
let chained_call_instruction_data = risc0_zkvm::serde::to_vec(&chained_call_greeting).unwrap();
let chained_call_instruction_data = borsh::to_vec(&chained_call_greeting).unwrap();
// Flip the `is_authorized` flag to true
let pre_state_for_chained_call = {