Update set_global_freeze.py

This commit is contained in:
Obiajulu
2022-11-05 00:38:01 -07:00
committed by GitHub
parent 921a3f4e89
commit ce4bd3d6be

View File

@@ -9,10 +9,14 @@ client = JsonRpcClient("https://s.altnet.rippletest.net:51234") # Connect to tes
# Sender wallet object
sender_wallet = generate_faucet_wallet(client)
print("Successfully generated test wallet")
# Build accountset transaction to enable global freeze
accountset = AccountSet(account=sender_wallet.classic_address,
set_flag=AccountSetFlag.ASF_GLOBAL_FREEZE)
print("Submitting prepared transaction...")
# Sign and submit transaction
stxn = safe_sign_and_autofill_transaction(accountset, sender_wallet, client)
stxn_response = send_reliable_submission(stxn, client)