Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deprecation warning
Browse files Browse the repository at this point in the history
michaelhly committed Oct 12, 2024
1 parent 48ba546 commit bc9155f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/solana/rpc/async_api.py
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
import asyncio
from time import time
from typing import Dict, List, Optional, Sequence, Union
from warnings import warn

from solders.hash import Hash as Blockhash
from solders.message import VersionedMessage
@@ -1041,6 +1042,8 @@ async def send_legacy_transaction(
1111111111111111111111111111111111111111111111111111111111111111,
)
"""
warn("send_transaction_legacy is deprecated. Use send_transaction instead.", DeprecationWarning)

last_valid_block_height = None
if recent_blockhash is None:
blockhash_resp = await self.get_latest_blockhash(Finalized)

0 comments on commit bc9155f

Please sign in to comment.