Skip to content
This repository was archived by the owner on Apr 18, 2023. It is now read-only.
This repository was archived by the owner on Apr 18, 2023. It is now read-only.

vals can be null in decodeParameters and lib crashes #40

Description

@Elyx0
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions