Skip to content

Commit 3d88a57

Browse files
committed
Fix signing issue on ultra api
1 parent afeaacc commit 3d88a57

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

jup_python_sdk/clients/jupiter_client.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ def _sign_versioned_transaction(
9292
wallet_index = account_keys.index(wallet.pubkey())
9393

9494
signers = list(versioned_transaction.signatures)
95-
signers[wallet_index] = wallet # type: ignore
9695

97-
return VersionedTransaction(
98-
versioned_transaction.message, signers # type: ignore
96+
message_bytes = bytes(versioned_transaction.message)
97+
your_signature = wallet.sign_message(message_bytes)
98+
signers[wallet_index] = your_signature
99+
100+
return VersionedTransaction.populate(
101+
versioned_transaction.message, signers
99102
)
100103

101104
def _serialize_versioned_transaction(

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "jup-python-sdk"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
description = "Python SDK for Jupiter Exchange APIs."
55
authors = ["Fiji <charismoutafidis@gmail.com>"]
66
license = "MIT"
@@ -18,7 +18,7 @@ classifiers = [
1818
python = "^3.9"
1919
httpx = "^0.28.1"
2020
pydantic = "^2.11.3"
21-
solders = "^0.26.0"
21+
solders = "^0.27.0"
2222
base58 = "^2.1.1"
2323
solana = "^0.36.6"
2424

0 commit comments

Comments
 (0)