We use a shared abi for balanceOf(address) when making ERC-20 and ERC-721 function calls. However, ERC-1155 uses a slightly different: balanceOf(address, unit), making our current code incompatible.
The solution won't be straightforward since we don't know what id to pass as the uint when calling balanceOf, so we will have to research a method for querying whether an address owns an ENS or not. (Might make this issue specifically geared towards ENS as the solution could be totally different. i.e. for standard 1155 tokens, we could make looped balanceOfBatch() calls.)
Solution
To support ERC-1155 we will need to add a new utility function and type field to our block3d.config file.
Overview
We use a shared abi for
balanceOf(address)
when making ERC-20 and ERC-721 function calls. However, ERC-1155 uses a slightly different:balanceOf(address, unit)
, making our current code incompatible.The solution won't be straightforward since we don't know what
id
to pass as theuint
when callingbalanceOf
, so we will have to research a method for querying whether an address owns an ENS or not. (Might make this issue specifically geared towards ENS as the solution could be totally different. i.e. for standard 1155 tokens, we could make loopedbalanceOfBatch()
calls.)Solution
To support ERC-1155 we will need to add a new utility function and
type
field to ourblock3d.config
file.Example