mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 20:25:51 +00:00
output more info while executing
This commit is contained in:
@@ -31,10 +31,12 @@ async def main() -> int:
|
|||||||
print("Transaction hash:", signed_tx.get_hash())
|
print("Transaction hash:", signed_tx.get_hash())
|
||||||
|
|
||||||
# Submit the transaction and wait for response (validated or rejected)
|
# Submit the transaction and wait for response (validated or rejected)
|
||||||
|
print("Submitting transaction...")
|
||||||
submit_result = await send_reliable_submission(signed_tx, client)
|
submit_result = await send_reliable_submission(signed_tx, client)
|
||||||
print("Submit result:", submit_result)
|
print("Submit result:", submit_result)
|
||||||
|
|
||||||
# Confirm Account Settings --------------------------------------------------
|
# Confirm Account Settings --------------------------------------------------
|
||||||
|
print("Requesting account information...")
|
||||||
account_info = await client.request(
|
account_info = await client.request(
|
||||||
AccountInfo(
|
AccountInfo(
|
||||||
account=wallet.classic_address,
|
account=wallet.classic_address,
|
||||||
@@ -45,9 +47,9 @@ async def main() -> int:
|
|||||||
# Verify that the AccountRoot lsfRequireDestTag flag is set
|
# Verify that the AccountRoot lsfRequireDestTag flag is set
|
||||||
flags = account_info.result["account_data"]["Flags"]
|
flags = account_info.result["account_data"]["Flags"]
|
||||||
if flags & 0x00020000 != 0:
|
if flags & 0x00020000 != 0:
|
||||||
print("Require Destination Tag is enabled.")
|
print(f"Require Destination Tag for account {wallet.classic_address} is enabled.")
|
||||||
else:
|
else:
|
||||||
print("Require Destination Tag is DISABLED.")
|
print(f"Require Destination Tag for account {wallet.classic_address} is DISABLED.")
|
||||||
|
|
||||||
# End main()
|
# End main()
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user