Skip to content

tokenMetadata should have valid data #99

@DevLubab

Description

@DevLubab

If a user mint a token with empty tokenMetadata it will still mint. I think this can cause some unexpected problems and need to validate it before storing it

The test below should pass

/** @todo fix in the contract **/
// await test.throwsAsync(async () => {
// await call_mint(contract, alice, {
// tokenMetadata: {},
// token_royalty: TOKEN_ROYALTY
// })
// })
// test.log(`✓ Alice failed to mint without tokenMetadata\n`)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions