Skip to content

Commit b47db73

Browse files
author
Caner Candan
committed
* wrappers/transactions.py: fixed issue
1 parent ee7c595 commit b47db73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wrappers/transactions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def get_mono_message(self, context_data, tx=''):
195195
context_data['base'], context_data['power'] = int(m.groups()[0]), len(m.groups()[1])
196196
tx += '%(fingerprint)s-%(previous_idx)d-%(base)d-%(power)d-F-%(number)d\n' % context_data
197197

198-
for coin in self.old_coins: tx += '%(id)s, %(transaction)s\n' % coin
198+
for coin in coins: tx += '%(id)s, %(transaction)s\n' % coin
199199

200200
return tx
201201

@@ -219,6 +219,6 @@ def get_mono_message(self, context_data, tx=''):
219219
if old_coins_sum != new_coins_sum:
220220
raise ValueError('Amount of old coins (%d) is not equal to new coins (%d)' % (old_coins_sum, new_coins_sum))
221221

222-
for coin in self.old_coins: tx += '%(id)s, %(transaction)s\n' % coin
222+
for coin in old_coins: tx += '%(id)s, %(transaction)s\n' % coin
223223

224224
return tx

0 commit comments

Comments
 (0)