Magickbase / godwoken_explorer

Godwoken Explorer
https://v1.gwscan.com
18 stars 8 forks source link

Bridged NFT metadata does not show on explorer #1419

Open Neonckb opened 1 year ago

Neonckb commented 1 year ago

Please see:

https://www.gwscan.com/multi-token-item/0x34933a5958378e7141aa2305cdb5cdf514896035/31019289342735007964254165470

This NFT was bridged from Ethereum to Godwoken using XP NETWORK bridge

I have consulted with Dima from XP NETWORK

The metadata can be found here

https://nft.xp.network/w/31019289342735007964254165470

Image: https://i.seadn.io/gae/TWw6VjeyKmC6oAhpZaOui2YlLKk0aYEoK6043brdW0PvPDgsO6IBrywNNl8-4guJLKs7mE2qQXNje039-btWpcReANZJWprp2Tto?w=500&auto=format

Some further info from Dima which may be helpful:

The contract has a uri(uint256 tokenID) function that returns this:

https://nft.xp.network/w/{id}

The marketplace needs to replace {id} with the tokenID

This is the standard OpenZepplin implementation:

https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/ERC1155.sol#L59

As a result of the above manipulations you will get this link:

https://nft.xp.network/w/31019289342735007964254165470

Naupio commented 1 year ago

fixed

image