changeTokenBalance
should check that balanceOf
has the right signature
#4794
Labels
changeTokenBalance
should check that balanceOf
has the right signature
#4794
See #4735
While the docs specify that these helpers only work with ERC20 token, the error you get if you use them with an ERC1155 token are very confusing. This is easy to improve on our side: we should add a check that
contract.balanceOf.fragment.inputs
has only one element of typeuint256
, or throw an error otherwise.The text was updated successfully, but these errors were encountered: