Skip to content

Mint issue while not using the one liner method #1

Description

@mv3n0m

Since createMetadataDetails and mintToken functions are asynchronous, the mintToken function finalizes before the createMetadataDetails. Therefore, creating an Invalid Owner error.

mintToken must be called after createMetadataDetails is finalized.
The below code must fix the issue:

createMetadataDetails().
then(() => {
console.log('successfully crated our metadata accounts')
mintToken()
.then(() => console.log("Successfully minted our Gold Token"))
.catch(err => console.error("error minting the tokens", err))
})
.catch(err => console.error("error minting the tokens", err))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions