🧐 Motivation
Currently, we can't dynamically set the name and version when implementing SNIP12, but we need to set them as constant short strings. This intentionally saves some gas by avoiding unnecessary storage reads, but sometimes that's the desired behavior, like for example, with a token generator.
📝 Details
Make the SNIP12Metadata trait generic on the contract state, so it can optionally access storage members.
🧐 Motivation Currently, we can't dynamically set the name and version when implementing SNIP12, but we need to set them as constant short strings. This intentionally saves some gas by avoiding unnecessary storage reads, but sometimes that's the desired behavior, like for example, with a token generator.
📝 Details Make the SNIP12Metadata trait generic on the contract state, so it can optionally access storage members.