Skip to content

Commit

Permalink
Fix send_transaction method: updated incorrect method name from get_r…
Browse files Browse the repository at this point in the history
…ecent_blockhash to get_latest_blockhash
  • Loading branch information
Vineeth Kagitha authored and Vineeth Kagitha committed Oct 12, 2024
1 parent dca5163 commit 218041a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solathon/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def send_transaction(self, transaction: Transaction) -> RPCResponse[str] | str:
recent_blockhash = transaction.recent_blockhash

if recent_blockhash is None:
blockhash_resp = self.get_recent_blockhash()
blockhash_resp = self.get_latest_blockhash()
recent_blockhash = blockhash_resp.blockhash

transaction.recent_blockhash = recent_blockhash
Expand Down

0 comments on commit 218041a

Please sign in to comment.