Update cancel_escrow.py

This commit is contained in:
Obiajulu
2022-10-15 11:03:21 -07:00
committed by GitHub
parent 18c37e133d
commit 1383b921c1

View File

@@ -15,15 +15,15 @@ escrow_sequence = 30215126
sender_wallet = generate_faucet_wallet(client=client) sender_wallet = generate_faucet_wallet(client=client)
# Build escrow cancel transaction # Build escrow cancel transaction
cancel_txn = EscrowCancel(account=sender_wallet.classic_address, owner=sender_wallet.classic_address, offer_sequence=escrow_seq) cancel_txn = EscrowCancel(account=sender_wallet.classic_address, owner=sender_wallet.classic_address, offer_sequence=escrow_sequence)
# Sign and submit transaction # Sign and submit transaction
stxn = safe_sign_and_autofill_transaction(cancel_txn, sender_wallet, client) stxn = safe_sign_and_autofill_transaction(cancel_txn, sender_wallet, client)
stxn_response = send_reliable_submission(stxn, client) stxn_response = send_reliable_submission(stxn, client)
# parse response and return result # Parse response and return result
stxn_result = stxn_response.result stxn_result = stxn_response.result
# parse result and print out the transaction result and transaction hash # Parse result and print out the transaction result and transaction hash
print(stxn_result["meta"]["TransactionResult"]) print(stxn_result["meta"]["TransactionResult"])
print(stxn_result["hash"]) print(stxn_result["hash"])