Skip to content
Snippets Groups Projects
Commit c312f4fb authored by jacogr's avatar jacogr
Browse files

don't attempt to map empty types

parent db4f1c38
Branches
Tags
No related merge requests found
......@@ -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 };
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment