cavanmflynn/ethers-multicall

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

Opened this issue · 1 comments

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.

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

as toFragment will return null