From c312f4fb92d540643c6ea0895dec887a6d67b863 Mon Sep 17 00:00:00 2001 From: jacogr Date: Sat, 22 Oct 2016 10:21:33 +0200 Subject: [PATCH] don't attempt to map empty types --- js/src/api/util/decode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/api/util/decode.js b/js/src/api/util/decode.js index 065d516e9..f2611c7f6 100644 --- a/js/src/api/util/decode.js +++ b/js/src/api/util/decode.js @@ -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 };