Skip to content

Commit 28753dd

Browse files
committed
fixes
1 parent 31277c4 commit 28753dd

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "solathon"
3-
version = "1.0.2"
3+
version = "1.0.4"
44
description = "High performance, easy to use and feature-rich Solana SDK for Python."
55
license = "MIT"
66
authors = ["GitBolt"]

solathon/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.2"
1+
__version__ = "1.0.4"
22

33
from .client import Client
44
from .async_client import AsyncClient

solathon/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ async def send_transaction(self, transaction: Transaction) -> RPCResponse:
495495
RPCResponse: The response from the Solana network.
496496
"""
497497
if not transaction.recent_blockhash:
498-
transaction.recent_blockhash = (await self.get_recent_blockhash())[
498+
transaction.recent_blockhash = (await self.get_latest_blockhas())[
499499
"result"
500500
].blockhash
501501

solathon/solana_pay/create_transfer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ def create_transfer(client: Client, sender: Keypair, transfer_fields: CreateTra
106106

107107
block_hash: BlockHash = None
108108
if client.clean_response == False:
109-
raw_block_hash: RPCResponse[BlockHashType] = client.get_recent_blockhash(
109+
raw_block_hash: RPCResponse[BlockHashType] = client.get_latest_blockhas(
110110
commitment=commitment)
111111
block_hash: BlockHash = BlockHash(raw_block_hash['result']['value'])
112112
else:
113-
block_hash: BlockHash = client.get_recent_blockhash(
113+
block_hash: BlockHash = client.get_latest_blockhas(
114114
commitment=commitment)
115115

116116
transaction = Transaction(instructions=[instruction], signers=[

solathon/solana_pay/fetch_transaction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ def fetch_transaction(client: Client, account: PublicKey, link: str, commitment:
7070
if len(transaction.signatures) == 1 and transaction.signatures[0].public_key == account:
7171
if not transaction.recent_blockhash:
7272
# Fetch recent blockhash if missing
73-
raw_blockhash: RPCResponse[BlockHashType] = client.get_recent_blockhash(commitment=commitment)
73+
raw_blockhash: RPCResponse[BlockHashType] = client.get_latest_blockhas(commitment=commitment)
7474
transaction.recent_blockhash = BlockHash(raw_blockhash['result']['value']).blockhash
75-
if not signatures:
75+
if not transaction.signatures:
7676
fee_payer = account
77-
elif fee_payer not in signatures:
77+
elif fee_payer not in transaction.signatures:
7878
raise ValueError("Invalid Fee payer or Missing Signature")
7979
return transaction

0 commit comments

Comments
 (0)