You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the nft module, there is the nft/types/nft.go file, which contains utilities for the nft type.
I have some questions/suggestions for these:
As for point 5 in NFT structure #159, why do we use CollectionID, MetadataID, and SequenceNumber for each NFT as the id? Is there a motivation?
The two functions IsValidNftId and NftIdToBytes could be merged in a single function with error if the nftID is not valid, since they share a very important part of logic.
As for point 5 in #159, why do we use CollectionID, MetadataID, and SequenceNumber for each NFT as the id? Is there a motivation?
I talked with @angelorc and he said that such a suggestion was valid at the beginning. But giving a look to the other implementation, it could be better to use a global ID for metadata and a sort of "address" (a hash) for the collection.
In the
nft
module, there is thenft/types/nft.go
file, which contains utilities for thenft
type.I have some questions/suggestions for these:
CollectionID
,MetadataID
, andSequenceNumber
for each NFT as the id? Is there a motivation?IsValidNftId
andNftIdToBytes
could be merged in a single function with error if thenftID
is not valid, since they share a very important part of logic.go-bitsong/x/nft/types/nft.go
Lines 19 to 52 in 84691c8
The text was updated successfully, but these errors were encountered: