Check to prevent multiple amounts in token transfer

This commit is contained in:
Vivek Teega 2021-06-05 04:29:33 +00:00
parent 1efcea7cce
commit 76a032977c

View File

@ -316,7 +316,7 @@ def parse_flodata(string, blockinfo, netvariable):
# todo Rule 31 - Extract number of tokens to be sent and the address to which to be sent, both data is mandatory
elif not incorporation and transfer:
amount = extractAmount(cleanstring, hashList[0][:-1])
if None not in [amount]:
if None not in [amount] and amount!='Too many':
parsed_data = {'type': 'transfer', 'transferType': 'token', 'flodata': string,
'tokenIdentification': hashList[0][:-1],
'tokenAmount': amount}