From 9824576164c454a4b1cf41c37b2db6239eeaff5c Mon Sep 17 00:00:00 2001 From: ysq Date: Thu, 6 Nov 2025 10:02:17 +0800 Subject: [PATCH] feat: upgrade to v3.1.6 --- Cargo.toml | 2 +- README.md | 4 ++-- README_CN.md | 4 ++-- src/instruction/pumpswap.rs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3211537..b8068ec 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sol-trade-sdk" -version = "3.1.6" +version = "3.1.7" edition = "2021" authors = [ "William ", diff --git a/README.md b/README.md index 34d0d83..348e8aa 100644 --- a/README.md +++ b/README.md @@ -87,14 +87,14 @@ Add the dependency to your `Cargo.toml`: ```toml # Add to your Cargo.toml -sol-trade-sdk = { path = "./sol-trade-sdk", version = "3.1.6" } +sol-trade-sdk = { path = "./sol-trade-sdk", version = "3.1.7" } ``` ### Use crates.io ```toml # Add to your Cargo.toml -sol-trade-sdk = "3.1.6" +sol-trade-sdk = "3.1.7" ``` ## 🛠️ Usage Examples diff --git a/README_CN.md b/README_CN.md index 3c5b6d5..6dcdfc9 100755 --- a/README_CN.md +++ b/README_CN.md @@ -87,14 +87,14 @@ git clone https://github.com/0xfnzero/sol-trade-sdk ```toml # 添加到您的 Cargo.toml -sol-trade-sdk = { path = "./sol-trade-sdk", version = "3.1.6" } +sol-trade-sdk = { path = "./sol-trade-sdk", version = "3.1.7" } ``` ### 使用 crates.io ```toml # 添加到您的 Cargo.toml -sol-trade-sdk = "3.1.6" +sol-trade-sdk = "3.1.7" ``` ## 🛠️ 使用示例 diff --git a/src/instruction/pumpswap.rs b/src/instruction/pumpswap.rs index f00d669..3aa4e9e 100755 --- a/src/instruction/pumpswap.rs +++ b/src/instruction/pumpswap.rs @@ -140,7 +140,7 @@ impl InstructionBuilder for PumpSwapInstructionBuilder { // Create buy instruction let mut accounts = Vec::with_capacity(23); accounts.extend([ - AccountMeta::new_readonly(pool, false), // pool_id (readonly) + AccountMeta::new(pool, false), // pool_id AccountMeta::new(params.payer.pubkey(), true), // user (signer) accounts::GLOBAL_ACCOUNT_META, // global (readonly) AccountMeta::new_readonly(base_mint, false), // base_mint (readonly) @@ -300,7 +300,7 @@ impl InstructionBuilder for PumpSwapInstructionBuilder { // Create sell instruction let mut accounts = Vec::with_capacity(23); accounts.extend([ - AccountMeta::new_readonly(pool, false), // pool_id (readonly) + AccountMeta::new(pool, false), // pool_id AccountMeta::new(params.payer.pubkey(), true), // user (signer) accounts::GLOBAL_ACCOUNT_META, // global (readonly) AccountMeta::new_readonly(base_mint, false), // mint (readonly)