Fixing bug with getFloAddressTransactions

This commit is contained in:
Vivek Teega 2019-10-06 16:51:12 +05:30
parent 6ee599af68
commit 79b45e4cec

View File

@ -222,7 +222,6 @@ async def getAddressTransactions():
if len(tokenNames) != 0: if len(tokenNames) != 0:
allTransactionList = [] allTransactionList = []
for token in tokenNames: for token in tokenNames:
token = token[0] token = token[0]
dblocation = dbfolder + '/tokens/' + str(token) + '.db' dblocation = dbfolder + '/tokens/' + str(token) + '.db'
@ -254,6 +253,8 @@ async def getAddressTransactions():
allTransactionList.append(tempdict) allTransactionList.append(tempdict)
return jsonify(result='ok', floAddress=floAddress, allTransactions=allTransactionList) return jsonify(result='ok', floAddress=floAddress, allTransactions=allTransactionList)
else:
return jsonify(result='error', description='No token transactions present present on this address')
# SMART CONTRACT APIs # SMART CONTRACT APIs