Open ghost opened 10 months ago
Did a test of getCollectionTokenInfo on most popular nft's on mainnet. ERC-721 all works, but ERC-1155 has like 50% success rate.
Here's ERC-1155:
Unable to fetch token metadata: missing revert data in call exception; Transaction reverted without a reason string [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (data="0x", transaction={"to":"0xc36cF0cFcb5d905B8B513860dB0CFE63F6Cf9F5c","data":"0x0e89341c0000000000000000000000000000000000000000000000000000000000000005","accessList":null}, error={"code":-32000,"message":"execution reverted"}, code=CALL_EXCEPTION, version=providers/5.7.2)
So a fallback is needed in case it fails.
Did a test of getCollectionTokenInfo on most popular nft's on mainnet. ERC-721 all works, but ERC-1155 has like 50% success rate.
Here's ERC-1155:
So a fallback is needed in case it fails.