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
Branches
Tags
1 merge request!65Pylint
......@@ -362,7 +362,7 @@ The class Block handles Block documents.
sup_lines = 2
tx_max = n + sup_lines + issuers_num * 2 + inputs_num + unlocks_num + outputs_num + has_comment
for index in range(n, tx_max):
tx_lines += lines[n + index]
tx_lines += lines[index]
n += (tx_max - n)
transaction = Transaction.from_compact(currency, tx_lines)
transactions.append(transaction)
......
......@@ -623,7 +623,7 @@ Comment: {comment}
for index in range(0, outputs_num):
output_source = OutputSource.from_inline(lines[n + index])
outputs.append(output_source)
n += 1
n += outputs_num
comment = ""
if has_comment == 1:
......
......@@ -132,7 +132,7 @@ class CSV:
csv.time = str(time)
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
......@@ -190,7 +190,7 @@ class CLTV:
cltv.timestamp = str(timestamp)
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment