Skip to content

Commit f77f08f

Browse files
committed
chore: run black
1 parent ce23251 commit f77f08f

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

examples/governance/governance.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
sender = algorand.account.random()
1515

1616
# Fund the sender
17-
algorand.send.payment(PayParams(sender=dispenser.address, receiver=sender.address, amount=1_000_000))
17+
algorand.send.payment(
18+
PayParams(sender=dispenser.address, receiver=sender.address, amount=1_000_000)
19+
)
1820

1921
# Send a governance commitment message
2022
algorand.send.payment(
@@ -92,11 +94,19 @@ def print_transfer(transaction: SubscribedTransaction, _: str) -> None:
9294
* The transaction data
9395
* The filter name (from the 'filters' list) that the transaction matched
9496
"""
95-
json_data = base64.b64decode(transaction["note"]).decode().split(":j")[1].replace("”", '"').replace("“", '"')
97+
json_data = (
98+
base64.b64decode(transaction["note"])
99+
.decode()
100+
.split(":j")[1]
101+
.replace("”", '"')
102+
.replace("“", '"')
103+
)
96104

97105
amount = json.loads(json_data)["com"] * 1e-6
98106

99-
print(f"Transaction {transaction['sender']} committed {amount} ALGO on round {transaction['confirmed-round']} in transaction {transaction['id']}")
107+
print(
108+
f"Transaction {transaction['sender']} committed {amount} ALGO on round {transaction['confirmed-round']} in transaction {transaction['id']}"
109+
)
100110

101111

102112
# Attach the callback to the events we are interested in

examples/live_monitoring/live_monitoring.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ def print_transfer(transaction: SubscribedTransaction, filter_name: str) -> None
8484
elif filter_name == "ALGO":
8585
details = transaction["payment-transaction"]
8686

87-
print(f"{transaction['sender']} sent {details['receiver']} {details['amount'] * 1e-6} {filter_name} in transaction {transaction['id']}")
87+
print(
88+
f"{transaction['sender']} sent {details['receiver']} {details['amount'] * 1e-6} {filter_name} in transaction {transaction['id']}"
89+
)
8890

8991

9092
# Attach the callback to the events we are interested in

0 commit comments

Comments
 (0)