Skip to content

Commit f9930db

Browse files
author
Oleksandr Anyshchenko
committed
Applied formatting
1 parent cbf8bed commit f9930db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

exonum/transactions.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ def __call__(self, cls):
6868
class Tx(tx_cls):
6969
def __init__(tx_self, *args, **kwargs):
7070
if "message_id" not in kwargs:
71-
kwargs["network_id"] = 0 # network_id field doesn't use anymore but place is reserved with value 0
71+
kwargs[
72+
"network_id"
73+
] = (
74+
0
75+
) # network_id field doesn't use anymore but place is reserved with value 0
7276
kwargs["protocol_version"] = self.protocol_version
7377
kwargs["message_id"] = message_id
7478
kwargs["service_id"] = self.service_id
@@ -95,7 +99,9 @@ def tx(self, secret_key, hex=False):
9599
k: v for k, v in plain.items() if k not in meta_fields
96100
}
97101
del message["payload_sz"]
98-
del message["network_id"] # network_id field doesn't use anymore in JSON
102+
del message[
103+
"network_id"
104+
] # network_id field doesn't use anymore in JSON
99105
return message
100106

101107
def hash(self, secret_key):

0 commit comments

Comments
 (0)