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"
mintWithMetadatasends wrong callsite (Mintinstead ofMintWithMetadata)Summary
MAS1AssetLogic.mintWithMetadata()builds the interaction withcallsite: MAS1.Endpoint.MINT("Mint") instead ofMAS1.Endpoint.MINTWITHMETADATA("MintWithMetadata"). The payload includesstatic_metadata, so the runtime expects theMintWithMetadataendpoint. With the current code the call fails. Changing the callsite toMINTWITHMETADATAfixes it.Version
js-moi-sdk0.7.0-rc6Location
js-moi-asset/lib.esm/mas1-asset.js, insidemintWithMetadata()(around line 89):js-moi-asset/src.ts/mas1-asset.ts, insidemintWithMetadata()(around line 116):Fix
Use the existing enum in both files:
lib.esm/mas1-asset.js:src.ts/mas1-asset.ts: