mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-19 19:25:51 +00:00
Remove __name__ == "__main__"
This commit is contained in:
@@ -7,7 +7,6 @@ from xrpl.models.requests import AccountInfo
|
||||
# Stand-alone code sample for the "Require Destination Tags" tutorial:
|
||||
# https://xrpl.org/require-destination-tags.html
|
||||
|
||||
if __name__ == "__main__":
|
||||
lsfRequireDestTag = 131072
|
||||
|
||||
# Connect to a testnet node
|
||||
@@ -31,7 +30,7 @@ if __name__ == "__main__":
|
||||
my_tx_payment_signed = safe_sign_and_autofill_transaction(tx, wallet=test_wallet, client=client)
|
||||
print(f"Transaction Hash: {my_tx_payment_signed.txn_signature}")
|
||||
|
||||
# Submit the transaction to the node
|
||||
# Send the transaction to the node
|
||||
print(f"Enabling Require Destination Tag flag (asfRequireDest) on {myAddr}")
|
||||
submit_transaction = submit_transaction(client=client, transaction=my_tx_payment_signed)
|
||||
submit_transaction = submit_transaction.result["engine_result"]
|
||||
|
||||
Reference in New Issue
Block a user