Skip to content

Commit

Permalink
Add information where ClassMeetadata should be stored.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba authored Oct 5, 2023
1 parent 37aaa74 commit 35d179c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neps/nep-504.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Similarly, `ContractMetadata` only defines issuer basic info.

### Class Metadata

We start by defining a `ClassMetadata` which will contain all common information about tokens of the same class.
We start by defining a `ClassMetadata` which will contain all common information about tokens of the same class. The `ClassMeetadata` object must be stored in the SBT issuer contract and accessible via `class_metadata(class: ClassId)` query.
This will allow to avoid duplicating such information in all `TokenMetadata` and potentially allow to leave `TokenMetadata.reference` empty, if the tokens only differentiate by the class, issued_at and expires_at attributes.

```rust
Expand Down

0 comments on commit 35d179c

Please sign in to comment.