mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-04 11:55:50 +00:00
Update unfreeze_token.py
This commit is contained in:
@@ -19,6 +19,8 @@ target_addr = generate_faucet_wallet(client=client).classic_address
|
||||
# Sender wallet
|
||||
sender_wallet = generate_faucet_wallet(client=client)
|
||||
|
||||
print("Successfully generated test wallets")
|
||||
|
||||
# Build trustline freeze transaction
|
||||
trustset = TrustSet(account=sender_wallet.classic_address, limit_amount=IssuedCurrencyAmount(
|
||||
currency=token_name,
|
||||
@@ -27,6 +29,8 @@ trustset = TrustSet(account=sender_wallet.classic_address, limit_amount=IssuedCu
|
||||
),
|
||||
flags=TrustSetFlag.TF_CLEAR_FREEZE)
|
||||
|
||||
print("prepared and submitting TF_CLEAR_FREEZE transaction")
|
||||
|
||||
# Sign and Submit transaction
|
||||
stxn = safe_sign_and_autofill_transaction(trustset, sender_wallet, client)
|
||||
stxn_response = send_reliable_submission(stxn, client)
|
||||
|
||||
Reference in New Issue
Block a user