For some reasons, if the ABI contains a receive payable function with no further arguments, instantiating a new Contract will throw an TypeError: Cannot read property 'type' of null error.
The problem seems to be coming from the Fragment from ethersprojects, but can also be fixed in the library.
For some reasons, if the ABI contains a
receive
payable function with no further arguments, instantiating a new Contract will throw anTypeError: Cannot read property 'type' of null
error. The problem seems to be coming from theFragment
from ethersprojects, but can also be fixed in the library.Can be reproduced by using this ABI:
in the tests.