Open jarrodwatts opened 2 years ago
Code to re-produce:
const { data: activeClaimCondition } = useActiveClaimCondition( editionDrop, 0 );
Using edition drop prebuilt contract, try to read the active claim condition like this:
Throws invariant:
Invariant failed: tokenId is required for ERC1155 claim conditions
Even though token id 0 is being passed in. If I change it to this then it works fine:
0
const { data: activeClaimCondition } = useActiveClaimCondition( editionDrop, BigNumber.from(0) );
Code to re-produce:
Using edition drop prebuilt contract, try to read the active claim condition like this:
Throws invariant:
Even though token id
0
is being passed in. If I change it to this then it works fine: