diff --git a/Cargo.lock b/Cargo.lock index 79a3f9c5..bb69b13b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2688,7 +2688,7 @@ dependencies = [ [[package]] name = "express-relay-client" -version = "0.6.1" +version = "0.6.2" dependencies = [ "borsh 1.5.3", "ethers", diff --git a/sdk/js/package.json b/sdk/js/package.json index 3094f14d..9f17af5d 100644 --- a/sdk/js/package.json +++ b/sdk/js/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/express-relay-js", - "version": "0.21.1", + "version": "0.21.2", "description": "Utilities for interacting with the express relay protocol", "homepage": "https://github.com/pyth-network/per/tree/main/sdk/js", "author": "Douro Labs", diff --git a/sdk/js/src/svm.ts b/sdk/js/src/svm.ts index 7c848c3d..4207748f 100644 --- a/sdk/js/src/svm.ts +++ b/sdk/js/src/svm.ts @@ -306,7 +306,7 @@ export function getUnwrapSolInstruction( owner: PublicKey, ): TransactionInstruction { const ata = getAssociatedTokenAddress(owner, NATIVE_MINT, TOKEN_PROGRAM_ID); - return createCloseAccountInstruction(ata, owner, owner, [owner]); + return createCloseAccountInstruction(ata, owner, owner); } export async function constructSwapBid( diff --git a/sdk/python/express_relay/svm/token_utils.py b/sdk/python/express_relay/svm/token_utils.py index af78440c..ea58cc63 100644 --- a/sdk/python/express_relay/svm/token_utils.py +++ b/sdk/python/express_relay/svm/token_utils.py @@ -103,6 +103,5 @@ def unwrap_sol(owner: Pubkey) -> Instruction: account=ata, dest=owner, owner=owner, - signers=[owner], ) ) diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml index abfc7d3b..c953837f 100644 --- a/sdk/python/pyproject.toml +++ b/sdk/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "express-relay" -version = "0.21.2" +version = "0.21.3" description = "Utilities for searchers and protocols to interact with the Express Relay protocol." authors = ["dourolabs"] license = "Apache-2.0" diff --git a/sdk/rust/Cargo.toml b/sdk/rust/Cargo.toml index afb317f1..c88ad613 100644 --- a/sdk/rust/Cargo.toml +++ b/sdk/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "express-relay-client" -version = "0.6.1" +version = "0.6.2" edition = "2021" description = "Pyth Express Relay client" repository = "https://github.com/pyth-network/per" diff --git a/sdk/rust/src/svm.rs b/sdk/rust/src/svm.rs index fa21f55a..8a8bafb0 100644 --- a/sdk/rust/src/svm.rs +++ b/sdk/rust/src/svm.rs @@ -461,14 +461,7 @@ impl Svm { params: GetUnwrapSolInstructionParams, ) -> Result { let ata = get_associated_token_address(¶ms.owner, &spl_token::native_mint::id()); - close_account( - &spl_token::id(), - &ata, - ¶ms.owner, - ¶ms.owner, - &[¶ms.owner], - ) - .map_err(|e| { + close_account(&spl_token::id(), &ata, ¶ms.owner, ¶ms.owner, &[]).map_err(|e| { ClientError::SvmError(format!( "Failed to create close account instruction: {:?}", e