Good evening guys, is there a way to verify the relationship between nft-item and collection in contract ? The only one I found requires to have nft-item-code saved, is there a way to get that code (inside contract ofc) or any other options ?
Dec 12, 2023, 4:49 PM
yes, you call get_nft_data on the item, it will tell you which index it claims to have + the collection_address.
Then you call get_nft_address_by_index on the collection and verify that the address of the item comes out.
Then you call get_nft_address_by_index on the collection and verify that the address of the item comes out.
Dec 14, 2023, 9:35 AM