Skip to content

Commit 5a68958

Browse files
committed
Fix urls for Server
1 parent ca0d193 commit 5a68958

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/soroban/create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def create_account(
4848
else soroban_models.NetworkConfig.from_network(network=network)
4949
)
5050

51-
horizon_server = stellar_sdk.Server(network.rpc_url)
51+
horizon_server = stellar_sdk.Server(network.horizon_url)
5252
source_account_ = horizon_server.load_account(identity.public_key)
5353

5454
# the new account itself
@@ -110,7 +110,7 @@ def create_asset(
110110

111111
# Transactions require a valid sequence number that is specific to this account.
112112
# We can fetch the current sequence number for the source account from Horizon.
113-
horizon_server = stellar_sdk.Server(network.rpc_url)
113+
horizon_server = stellar_sdk.Server(network.horizon_url)
114114
distributor_account = horizon_server.load_account(distributor.public_key)
115115

116116
asset = stellar_sdk.Asset(code=name, issuer=issuer.public_key)

src/soroban/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def from_source_account(
6666

6767

6868
class NetworkConfig(BaseSettings):
69+
# https://horizon.publicnode.org
6970
horizon_url: HttpUrl = HttpUrl("https://horizon-testnet.stellar.org")
7071
rpc_url: HttpUrl = HttpUrl("https://soroban-testnet.stellar.org")
7172
network_passphrase: str = Network.TESTNET_NETWORK_PASSPHRASE

0 commit comments

Comments
 (0)