Skip to content

Multicall.all() yields Cannot read properties of undefined (reading 'length') #48

Open
@raparri01

Description

I am currently running into this error when await-ing the result of a multicall.all() call.

ethers-multicall: ^0.2.3
ethers: ^5.7.2

Below is the relevant code:

const multicallProvider = new Provider(provider, 1); //Provider is an AlchemyProvider
const call1 = new Contract(address, abi).liquidity; // ethers-multicall contract
const call2 = new Contract(address, abi).protocolFees; //ethers-multicall-contract
await multicallProvider.all([call1, call2]) //Fails and throws error

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions