Skip to content

mintWithMetadata uses wrong callsite (Mint instead of MintWithMetadata) #123

Description

@sarvalabs-adithya

mintWithMetadata sends wrong callsite (Mint instead of MintWithMetadata)

Summary

MAS1AssetLogic.mintWithMetadata() builds the interaction with callsite: MAS1.Endpoint.MINT ("Mint") instead of MAS1.Endpoint.MINTWITHMETADATA ("MintWithMetadata"). The payload includes static_metadata, so the runtime expects the MintWithMetadata endpoint. With the current code the call fails. Changing the callsite to MINTWITHMETADATA fixes it.

Version

js-moi-sdk 0.7.0-rc6

Location

js-moi-asset/lib.esm/mas1-asset.js, inside mintWithMetadata() (around line 89):

callsite: MAS1.Endpoint.MINT,  // ← incorrect: resolves to "Mint"

js-moi-asset/src.ts/mas1-asset.ts, inside mintWithMetadata() (around line 116):

callsite: MAS1.Endpoint.MINT,  // ← incorrect: resolves to "Mint"

Fix

Use the existing enum in both files:

lib.esm/mas1-asset.js:

callsite: MAS1.Endpoint.MINTWITHMETADATA,  // resolves to "MintWithMetadata"

src.ts/mas1-asset.ts:

callsite: MAS1.Endpoint.MINTWITHMETADATA,  // resolves to "MintWithMetadata"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions