Update enable_no_freeze.py

This commit is contained in:
Obiajulu
2022-11-05 00:24:04 -07:00
committed by GitHub
parent d7e3cd63be
commit 43ab636d05

View File

@@ -10,15 +10,20 @@ client = JsonRpcClient("https://s.altnet.rippletest.net:51234") # connect to tes
# generate wallet
sender_wallet = generate_faucet_wallet(client=client)
print("Successfully generated test wallet")
# build accountset transaction to disable freezing
accountset = AccountSet(account=sender_wallet.classic_address, set_flag=AccountSetFlag.ASF_NO_FREEZE)
# sign transaction
stxn = safe_sign_and_autofill_transaction(accountset, sender_wallet, client)
print("Now sending an AccountSet transaction to set the ASF_NO_FREEZE flag...")
# submit transaction and wait for result
stxn_response = send_reliable_submission(stxn, client)
# parse response for result
stxn_result = stxn_response.result