Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
raparri01 opened this issue Nov 23, 2022 · 1 comment

Comments

@raparri01
Copy link

raparri01 commented Nov 23, 2022

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!

@DeabitTech
Copy link

hello, you resolved i have this other error like yours: Possible Unhandled Promise Rejection (id: 56): "undefined is not an object (evaluating 'inputs_1.length')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants