function decodeParameters(types, vals) {
return defaultAbiCoder.decode(types, '0x' + vals.replace(/0x/i, ''));
}
vals being null the replace crashes the whole stuff.
Coming from
outerResultsDecoded = decodeParameters(['uint256', 'bytes[]'], outerResults);
with outerResults being undefined.
returnDataMeta is the correct length.
testmulticall.js TypeError: Cannot read property 'replace' of undefined
at rs (multicall.esm.js:24)
at multicall.esm.js:264
at c (runtime.js:63)