From 76a032977cbac9f7c70609186d32b5ce4932650c Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Sat, 5 Jun 2021 04:29:33 +0000 Subject: [PATCH] Check to prevent multiple amounts in token transfer --- parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsing.py b/parsing.py index 5f13b63..e0fe046 100644 --- a/parsing.py +++ b/parsing.py @@ -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}