Skip to content

Commit

Permalink
fix: remove multisig from close instructions (#389)
Browse files Browse the repository at this point in the history
* fix: remove multisig from close instructions

* update rust sdk
  • Loading branch information
guibescos authored Feb 15, 2025
1 parent b895471 commit 9c5640f
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/js/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion sdk/js/src/svm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 0 additions & 1 deletion sdk/python/express_relay/svm/token_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,5 @@ def unwrap_sol(owner: Pubkey) -> Instruction:
account=ata,
dest=owner,
owner=owner,
signers=[owner],
)
)
2 changes: 1 addition & 1 deletion sdk/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sdk/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 1 addition & 8 deletions sdk/rust/src/svm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,7 @@ impl Svm {
params: GetUnwrapSolInstructionParams,
) -> Result<Instruction, ClientError> {
let ata = get_associated_token_address(&params.owner, &spl_token::native_mint::id());
close_account(
&spl_token::id(),
&ata,
&params.owner,
&params.owner,
&[&params.owner],
)
.map_err(|e| {
close_account(&spl_token::id(), &ata, &params.owner, &params.owner, &[]).map_err(|e| {
ClientError::SvmError(format!(
"Failed to create close account instruction: {:?}",
e
Expand Down

0 comments on commit 9c5640f

Please sign in to comment.