don't attempt to map empty types

This commit is contained in:
jacogr 2016-10-22 10:21:33 +02:00
parent db4f1c382e
commit c312f4fb92

View File

@ -73,7 +73,7 @@ export function methodToAbi (method) {
const name = method.substr(0, typesStart);
const types = method.substr(typesStart + 1, length - (typesStart + 1) - 1).split(',');
const inputs = types.map((_type) => {
const inputs = types.filter((_type) => _type.length).map((_type) => {
const type = fromParamType(toParamType(_type));
return { type };