Skip to content

Named storage/pools #1054

Answered by skypjack
alektron asked this question in Q&A
Aug 21, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Do the custom identifiers passed to 'storage' have to be unique across all types?

☝️

They aren't combined with the type name. Identifiers are used as-is. So, yeah, in your example they cause a conflict and thus and assert.
Consider that combining would mean concatenating and therefore probably allocating. It's not something I'd want in any case.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@alektron
Comment options

@skypjack
Comment options

Answer selected by alektron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion it sounds interesting, let's discuss it
2 participants