Asset tag in transfer steps
crisdut opened this issue · comments
Description
Version: 6d2f8c0
When trying to perform a transfer in version 0.11 of RGB, the cli returned the following error:
RGB: command-line wallet for RGB smart contracts
by LNP/BP Standards Association
Loading descriptor from wallet default ... success
Loading stock ... success
Error: asset tag for state `0x0FA0` must be added before any fungible state of the same type.
From what I understand, asset tags were introduced to make RGB compatible with Liquid.
I passed this step by creating a tag before adding a new fungible state. However, I have some questions about AssetTag:
- Can tags be generated using any value? Regarding transfers, I combined contract_id and seal, similar to what was done when issuing the asset (concatenation between schema_id and iface_id). Is this correct, or do you suggest another combination? (From what I understand, it needs to be unique)
- I noticed that only fungible contracts have tags implemented. Other types like RGB21, which may have fractionation or collection UDAs, did they need tags later?
Thank you
Asset tags are autogenerated during asset creation and should be kept in the stash (they are also passed in consignments).
This is bug that tag got missed, I will work on fix
This is bug that tag got missed, I will work on fix
Ok, sure.
Asset tag was generated in asset issue. But I forgot to test if it is another AssignmentType during creation.
Fixed in b2ec821