Remove __name__ == "__main__"

This commit is contained in:
Wo Jake
2022-09-08 15:50:04 +00:00
committed by GitHub
parent f0fe95510f
commit 7c99cc6375

View File

@@ -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"]