Skip to content

Commit

Permalink
Merge pull request #447 from MeshJS/fix/metadata
Browse files Browse the repository at this point in the history
fix metadata bug
  • Loading branch information
jinglescode authored Dec 17, 2024
2 parents 0bdd76c + bf131ea commit e2e6144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mesh-transaction/src/transaction/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ export class Transaction {
if (!mint.cip68ScriptAddress && mint.metadata && mint.label) {
if (mint.label === "721" || mint.label === "20") {
let currentMetadata = this.txBuilder.meshTxBuilderBody.metadata;
if (currentMetadata.size === 0) {
if (currentMetadata.get(BigInt(mint.label)) === undefined) {
this.setMetadata(Number(mint.label), {
[policyId]: { [mint.assetName]: mint.metadata },
});
Expand Down

0 comments on commit e2e6144

Please sign in to comment.