Closed matt-user closed 14 hours ago
Could this be an extension of getMintedAssetId
?
@matt-user We already have the helper getMintesAssetId that hashes both the contractId
and the subId
to return the assetId
I agree with @Torres-ssf, there is already the getMintedAsset
that returns pretty much the assetId and is the same function I had to use when writing the createAssetId
. They are also located in the same file
Is there some special feature of the new createAssetId
.
Motivation
Creating an assetId manually is easy, but is also easy to mess up. For new devs this function would be helpful.
Summary
createAssetId
createAssetId
in Native Parameters -> Asset IDUsage example
const assetId = createAssetId(contractId, subId)
Possible implementations