Closed tuler closed 7 months ago
Latest commit: d9dbcb83d2674cc72b4c6604f01fa92650b9d1d2
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Still missing batch transfer of ERC1155 and batch withdraw of ERC1155. Will work on that
Batch operations of ERC1155 implemented.
Problem of running test fixed
I prefer balanceOfEther. Not a big deal
I prefer balanceOfEther.
I agree it's a little strange, but the context is:
The name of the method was a reflection of the name of the ERC20 method, balanceOf(account)
So it's of
account, not of
erc20
To be fair ERC71 also has a balanceOf(owner) which we don't have.
Add support for ERC721 and ERC1155. Breaking change: change balanceOf to explicit etherBalanceOf and erc20BalanceOf
This implementation follows the same design pattern of the support of ether and ERC20.
Test has 100% coverage now.
To run tests, there is an issue with
vitest
not supporting import assertion. So the best I could do for now was to comment out theassert { type: "json" }
frompackages/wallet/wagmi.config.ts
sopnpm run test
works.