cavanmflynn / ethers-multicall

Make multiple Ethereum network requests in a single HTTP query. ethcall for ethers v5.
MIT License
224 stars 99 forks source link

Fix dependency issue #39

Closed kurotych closed 2 years ago

kurotych commented 2 years ago

I have a problem with the installation of your package to my project that uses zero-Installs methodology. Due to a lack of dependencies in the package.json file. I had to add the next dependencies to .yarnrc.yml file

packageExtensions:
    ethers-multicall@*:
      dependencies:
        "@ethersproject/abi": "*"
        "@ethersproject/contracts": "*"
        "@ethersproject/keccak256": "*"
        "@ethersproject/strings": "*"

I'm not sure but the next changes may help to resolve the problem. Please check

Fix Error:

ethers-multicall tried to access @ethersproject/contracts, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound

This version package has been taken from yarn.lock file