Open Yuripetusko opened 2 years ago
Needs a spec change, and a whitelist for callback ops to LIST, SEND, RESADD. Otherwise fine, but needs to be aware of possible double curlies in the resource fields, if someone decides to break things 🤔
Definitely a 👍 Need the exact use case you are using as an example.
This would be a hugely useful addition to the spec!
Because TS/extrinsic implementation version of RMRK standard uses block number in NFT id, this prevents you from doing anything with an NFT in the same block as it is MINTed. This is because you need to know at which block the NFT was minted before you can construct additional remarks for it.
with that in mind, I propose to accept an optional
onMint
array with nft fields object passed with MINT interaction. This array would use double curly brace notation that will be interpolated into nft id that is being minted at a runtime.