transaction verification is fixed
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
parent
75d1c04412
commit
b38dd8f013
|
@ -47,7 +47,7 @@ class NetworkApi:
|
|||
info('Looking for a transaction with unique amount %s in list of transactions, address is %s' %
|
||||
(amount, address))
|
||||
for transaction in transactions:
|
||||
if int(float(amount) * 10 ** 18) == int(transaction['value']):
|
||||
if float(int(transaction['value']) / 10 ** 18) == float(amount):
|
||||
info('Transaction with unique amount %s is found in list of transactions, address is %s' %
|
||||
(amount, address))
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue