NomicFoundation / hardhat

Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
https://hardhat.org
Other
7.31k stars 1.41k forks source link

Multicall support in hardhat node #3718

Open sherpya opened 1 year ago

sherpya commented 1 year ago

Describe the feature

Some web libraries already support multicall:

https://github.com/makerdao/multicall

I'm using https://usedapp.io/ on each run it tries to deply multicall contrats, it would be nice to have already deployed and at a fixed address (like console) both multicall contracts:

https://github.com/TrueFiEng/useDApp/tree/master/packages/core/src/constants/abi

Search terms

multicall node

alcuadrado commented 1 year ago

Really interesting suggestion!

alcuadrado commented 1 year ago

Is there any address in particular that should have the contract?

sherpya commented 1 year ago

looks like v1 was deployed before create2 implementation, v2 has same address on all chains: 0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696

usedapp has not filled yet the address :smile: https://github.com/TrueFiEng/useDApp/blob/master/packages/core/src/model/chain/local.ts