From 53a077784c547db8f5ef0f79bb3204deecf97364 Mon Sep 17 00:00:00 2001 From: bonedaddy Date: Sun, 20 Nov 2022 11:19:52 -0800 Subject: [PATCH] wip --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 57dee39..34354b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anyix" -version = "0.1.4" +version = "0.1.5" edition = "2021" authors = ["Bonedaddy"] description = "lightweight instruction encoding for arbitrary fallback execution" diff --git a/src/lib.rs b/src/lib.rs index 1d7b70c..621a79f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -44,7 +44,7 @@ pub fn handle_anyix<'info>( .collect(), data: instruction_datas[idx as usize].clone(), }, - accounts, + &accounts[1..], )?; } Ok(()) @@ -84,7 +84,7 @@ pub fn handle_anyix_unsafe<'info>( .collect(), data: instruction_datas[idx as usize].clone(), }, - &accounts[1..], + accounts, )?; } Ok(())