Skip to content

Commit

Permalink
feat: SorobanServer.send_transaction supports sending FeeBumpTransa…
Browse files Browse the repository at this point in the history
…ctionEnvelope. (#956)
  • Loading branch information
overcat authored Jul 16, 2024
1 parent 7ce71be commit ea3450e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Release History
==============

### Pending
feat: `SorobanServer.send_transaction` supports sending FeeBumpTransactionEnvelope.

### Version 10.0.0

Expand Down
6 changes: 5 additions & 1 deletion stellar_sdk/soroban_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

if TYPE_CHECKING:
from .client.base_sync_client import BaseSyncClient
from .fee_bump_transaction_envelope import FeeBumpTransactionEnvelope
from .transaction_envelope import TransactionEnvelope

__all__ = ["SorobanServer", "Durability"]
Expand Down Expand Up @@ -196,7 +197,10 @@ def simulate_transaction(
return self._post(request, SimulateTransactionResponse)

def send_transaction(
self, transaction_envelope: Union[TransactionEnvelope, str]
self,
transaction_envelope: Union[
TransactionEnvelope, FeeBumpTransactionEnvelope, str
],
) -> SendTransactionResponse:
"""Submit a real transaction to the Stellar network. This is the only way to make changes "on-chain".
Expand Down
6 changes: 5 additions & 1 deletion stellar_sdk/soroban_server_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

if TYPE_CHECKING:
from .client.base_async_client import BaseAsyncClient
from .fee_bump_transaction_envelope import FeeBumpTransactionEnvelope
from .transaction_envelope import TransactionEnvelope

__all__ = ["SorobanServerAsync", "Durability"]
Expand Down Expand Up @@ -195,7 +196,10 @@ async def simulate_transaction(
return await self._post(request, SimulateTransactionResponse)

async def send_transaction(
self, transaction_envelope: Union[TransactionEnvelope, str]
self,
transaction_envelope: Union[
TransactionEnvelope, FeeBumpTransactionEnvelope, str
],
) -> SendTransactionResponse:
"""Submit a real transaction to the Stellar network. This is the only way to make changes "on-chain".
Expand Down

0 comments on commit ea3450e

Please sign in to comment.