I am unable to import any nft as collectible in my temple wallet. Instead it is being imported as a token. I want it to show up in my wallet with the picture as a collectible.
The delpoyed contract is https://better-call.dev/ghostnet/KT1A7jooCViGCFcx3giy5gJPniViVRcx58Qr
The smartpy code i have used for the nft contract is -
import smartpy as sp
FA2 = sp.io.import_script_from_url("https://smartpy.io/templates/fa2_lib.py")
class TezDevNft(FA2.Fa2Nft):
@sp.entry_point
def mint(self, owner, token_info):
token_id = self.data.last_token_id
self.data.ledger[token_id] = owner
self.data.token_metadata[token_id] = sp.record(token_id = token_id, token_info = token_info)
self.data.last_token_id += 1
@sp.add_test(name="Test tezDevNft")
def test():
sc = sp.test_scenario()
tezDevNft = TezDevNft(
metadata = sp.utils.metadata_of_url(
"ipfs://QmRqg5DwUXmYmRRsZhBjoduaAdDgTc3baoxMTA3a3V35hT"))
sc += tezDevNft
alice = sp.address("tz1cKCuTgMvP7KKGJ8c2uBcFFBcGV99rN5Le")
bob = sp.address("tz1Z3q4NGmcmsry2T4nPTHgZv9NVFuiGopzc")
sc.show(sp.record(alice = alice,bob = bob))
sc.h2("Mint")
tezDevNft.mint(owner = alice,
token_info=sp.map({
"image": sp.utils.bytes_of_string(
"ipfs://QmRqg5DwUXmYmRRsZhBjoduaAdDgTc3baoxMTA3a3V35hT"
)
})
)