Skip to content
Snippets Groups Projects
Commit 18ef68da authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] #91 fix bugs that broke tests

parent b31fee74
No related branches found
No related tags found
1 merge request!65Pylint
...@@ -362,7 +362,7 @@ The class Block handles Block documents. ...@@ -362,7 +362,7 @@ The class Block handles Block documents.
sup_lines = 2 sup_lines = 2
tx_max = n + sup_lines + issuers_num * 2 + inputs_num + unlocks_num + outputs_num + has_comment tx_max = n + sup_lines + issuers_num * 2 + inputs_num + unlocks_num + outputs_num + has_comment
for index in range(n, tx_max): for index in range(n, tx_max):
tx_lines += lines[n + index] tx_lines += lines[index]
n += (tx_max - n) n += (tx_max - n)
transaction = Transaction.from_compact(currency, tx_lines) transaction = Transaction.from_compact(currency, tx_lines)
transactions.append(transaction) transactions.append(transaction)
......
...@@ -623,7 +623,7 @@ Comment: {comment} ...@@ -623,7 +623,7 @@ Comment: {comment}
for index in range(0, outputs_num): for index in range(0, outputs_num):
output_source = OutputSource.from_inline(lines[n + index]) output_source = OutputSource.from_inline(lines[n + index])
outputs.append(output_source) outputs.append(output_source)
n += 1 n += outputs_num
comment = "" comment = ""
if has_comment == 1: if has_comment == 1:
......
...@@ -132,7 +132,7 @@ class CSV: ...@@ -132,7 +132,7 @@ class CSV:
csv.time = str(time) csv.time = str(time)
return csv return csv
def compose(self, parser: Any = None, grammar: Any = None, attr_of: str = None): def compose(self, parser: Any = None, grammar: Any = None, attr_of: str = None) -> str:
""" """
Return the CSV(time) expression as string format Return the CSV(time) expression as string format
...@@ -190,7 +190,7 @@ class CLTV: ...@@ -190,7 +190,7 @@ class CLTV:
cltv.timestamp = str(timestamp) cltv.timestamp = str(timestamp)
return cltv return cltv
def compose(self, parser: Any = None, grammar: Any = None, attr_of: str = None): def compose(self, parser: Any = None, grammar: Any = None, attr_of: str = None) -> str:
""" """
Return the CLTV(timestamp) expression as string format Return the CLTV(timestamp) expression as string format
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment