Consider is operator to check variant of datatypes #422

Open
opened 2022-10-31 16:26:38 +09:00 by zxq9 · 1 comment
zxq9 commented 2022-10-31 16:26:38 +09:00 (Migrated from gitlab.com)

Created by: marc0olo

as discussed in chat.

given datatype metadata = MetadataIdentifier(string) | MetadataMap(map(string, string)) it could be helpful to easily check if a value is of variant MetadataIdentifier or MetadataMap

*Created by: marc0olo* as discussed in chat. given `datatype metadata = MetadataIdentifier(string) | MetadataMap(map(string, string))` it could be helpful to easily check if a value is of variant `MetadataIdentifier` or `MetadataMap`
zxq9 commented 2022-10-31 16:31:54 +09:00 (Migrated from gitlab.com)

Created by: marc0olo

the discussion popped up when implementing these lines of code which could be replaced with a require then:

*Created by: marc0olo* the discussion popped up when implementing these lines of code which could be replaced with a `require` then: - https://github.com/aeternity/aex141-nft-collection-example/blob/e4d8190519d8a2ac3381f0ecd753b3716a030ce1/contracts/CollectionTemplateEditionNFTs.aes#L174
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QPQ-AG/sophia#422
No description provided.