From eea97b6365fbb4413df177e19840f489bc784935 Mon Sep 17 00:00:00 2001 From: momo Date: Thu, 24 Mar 2022 12:49:56 +0800 Subject: [PATCH] fix cropper_finance instruction error --- src/program-rust/Cargo.toml | 2 +- src/program-rust/src/swappers/cropper/instruction.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/program-rust/Cargo.toml b/src/program-rust/Cargo.toml index d61fd8d..dc557c2 100644 --- a/src/program-rust/Cargo.toml +++ b/src/program-rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "onesol-protocol" -version = "0.4.1" +version = "0.4.2" authors = ["croath "] edition = "2018" exclude = ["js/**"] diff --git a/src/program-rust/src/swappers/cropper/instruction.rs b/src/program-rust/src/swappers/cropper/instruction.rs index 184175b..5aaeabf 100644 --- a/src/program-rust/src/swappers/cropper/instruction.rs +++ b/src/program-rust/src/swappers/cropper/instruction.rs @@ -72,7 +72,7 @@ pub fn swap_instruction( AccountMeta::new_readonly(*swap_pubkey, false), AccountMeta::new_readonly(*authority_pubkey, false), AccountMeta::new_readonly(*user_transfer_authority_pubkey, true), - AccountMeta::new_readonly(*state_pubkey, true), + AccountMeta::new_readonly(*state_pubkey, false), AccountMeta::new(*source_pubkey, false), AccountMeta::new(*swap_source_pubkey, false), AccountMeta::new(*swap_destination_pubkey, false),