MetaFam / chievemints

MetaGame’s achievements NFTs
https://chiev.es
0 stars 9 forks source link

Test and debug the basic creation flow #1

Open dysbulic opened 2 years ago

dysbulic commented 2 years ago

A user with a Creator token is able to generate new token types. When a new type is created a maintainer is specified. The maintainer is given Minting, Metadata Configuration, and Limiting permission tokens for the newly generated type.

Currently the permission tokens are not working. The first 32 bits of each token are an id. For vanilla tokens that id is the index of the token in the list of all tokens (and thus unique). For permission tokens, those bits are the id of the token that the token permissions.

My best guess is the permission token isn't being created of dereferenced properly.

What should be done is the creation of a new Chai test stepping through the creation process to use to identify the exact issue.