diff --git a/Cargo.toml b/Cargo.toml index 82fb901..ba09d52 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sol-trade-sdk" -version = "3.1.2" +version = "3.1.3" edition = "2021" authors = [ "William ", diff --git a/README.md b/README.md index 165f513..b9df029 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.2" } +sol-trade-sdk = { path = "./sol-trade-sdk", version = "3.1.3" } ``` ### Use crates.io ```toml # Add to your Cargo.toml -sol-trade-sdk = "3.1.2" +sol-trade-sdk = "3.1.3" ``` ## 🛠️ Usage Examples diff --git a/README_CN.md b/README_CN.md index 1dfd5bb..741c4c0 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.2" } +sol-trade-sdk = { path = "./sol-trade-sdk", version = "3.1.3" } ``` ### 使用 crates.io ```toml # 添加到您的 Cargo.toml -sol-trade-sdk = "3.1.2" +sol-trade-sdk = "3.1.3" ``` ## 🛠️ 使用示例 diff --git a/src/trading/core/async_executor.rs b/src/trading/core/async_executor.rs index 71e90f7..26b1100 100644 --- a/src/trading/core/async_executor.rs +++ b/src/trading/core/async_executor.rs @@ -150,7 +150,7 @@ pub async fn execute_parallel( return Err(anyhow!("No available gas fee strategy configs")); } - if task_configs.len() > 1 && durable_nonce.is_none() { + if is_buy && task_configs.len() > 1 && durable_nonce.is_none() { return Err(anyhow!("Multiple swqos transactions require durable_nonce to be set.",)); }