Skip to content

Commit

Permalink
🐍 Python spacing, misc flow
Browse files Browse the repository at this point in the history
I like adding some space to seperate out the caller base object with the local variable for ease of visual parsing
  • Loading branch information
JFWooten4 authored Nov 26, 2024
1 parent 9f67538 commit 439e9f6
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions docs/tokens/publishing-asset-info.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -207,33 +207,31 @@ server = Server(horizon_url="https://horizon-testnet.stellar.org")
network_passphrase = Network.TESTNET_NETWORK_PASSPHRASE

# Keys for accounts to issue and receive the new asset
issuing_keypair = Keypair.from_secret(
"SCZANGBA5YHTNYVVV4C3U252E2B6P6F5T3U6MM63WBSBZATAQI3EBTQ4"
)
issuing_keypair = Keypair.from_secret("SCZANGBA5YHTNYVVV4C3U252E2B6P6F5T3U6MM63WBSBZATAQI3EBTQ4")
issuing_public = issuing_keypair.public_key


# Transactions require a valid sequence number that is specific to this account.
# We can fetch the current sequence number for the source account from Horizon.
issuing_account = server.load_account(issuing_public)

transaction = (
TransactionBuilder(
source_account=issuing_account,
network_passphrase=network_passphrase,
base_fee=100,
)
.append_set_options_op(
home_domain="yourdomain.com"
)
.build()
TransactionBuilder(
source_account = issuing_account,
network_passphrase = network_passphrase,
base_fee = 100,
)
.append_set_options_op(
home_domain = "yourdomain.com"
)
.build()
)
transaction.sign(issuing_keypair)

try:
transaction_resp = server.submit_transaction(transaction)
print(f"Transaction Resp:\n{transaction_resp}")
transaction_resp = server.submit_transaction(transaction)
print(f"Transaction Resp:\n{transaction_resp}")
except BaseHorizonError as e:
print(f"Error: {e}")
print(f"Error: {e}")
```

```java
Expand Down

0 comments on commit 439e9f6

Please sign in to comment.