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

Contract instantiation fails with 'type' not specify in a fragment of an abi definition #36

Open notsegfault opened 2 years ago

notsegfault commented 2 years ago

if the abi contains for example: { payable: true, stateMutability: 'payable', type: 'fallback' },

the contract instantiation will fail because x.type is undefined.

one can simply remove the abi entry but it would be nice if that would ignore it instead.

notsegfault commented 2 years ago

similar issue with an abi definition of stateMutability: 'payable', type: 'receive' },

as toFragment will return null