@meshsdk/contract 1.8.1 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1277,7 +1277,7 @@ var MeshContentOwnershipContract = class extends MeshTxInitiator {
1277
1277
  const policyId = (0, import_core3.resolveScriptHash)(forgingScript);
1278
1278
  const tokenNameHex = (0, import_core3.stringToHex)(tokenName2);
1279
1279
  const metadata = { [policyId]: { [tokenName2]: { ...tokenMetadata } } };
1280
- const txHex = await this.mesh.mint("1", policyId, tokenNameHex).mintingScript(forgingScript).metadataValue("721", metadata).changeAddress(walletAddress).selectUtxosFrom(utxos).complete();
1280
+ const txHex = await this.mesh.mint("1", policyId, tokenNameHex).mintingScript(forgingScript).metadataValue(721, metadata).changeAddress(walletAddress).selectUtxosFrom(utxos).complete();
1281
1281
  return txHex;
1282
1282
  };
1283
1283
  /**
@@ -4400,7 +4400,7 @@ var MeshPlutusNFTContract = class extends MeshTxInitiator {
4400
4400
  ).txInRedeemerValue((0, import_common12.mConStr0)([])).txInScript(this.getOracleCbor()).txInInlineDatumPresent().txOut(this.oracleAddress, [{ unit: oracleNftPolicyId, quantity: "1" }]).txOutInlineDatumValue(updatedOracleDatum, "JSON").mintPlutusScriptV3().mint("1", policyId, tokenNameHex).mintingScript(this.getNFTCbor());
4401
4401
  if (assetMetadata) {
4402
4402
  const metadata = { [policyId]: { [tokenName2]: { ...assetMetadata } } };
4403
- tx.metadataValue("721", metadata);
4403
+ tx.metadataValue(721, metadata);
4404
4404
  }
4405
4405
  tx.mintRedeemerValue((0, import_common12.mConStr0)([])).txOut(feeCollectorAddress, [
4406
4406
  { unit: "lovelace", quantity: lovelacePrice.toString() }
package/dist/index.js CHANGED
@@ -1262,7 +1262,7 @@ var MeshContentOwnershipContract = class extends MeshTxInitiator {
1262
1262
  const policyId = resolveScriptHash2(forgingScript);
1263
1263
  const tokenNameHex = stringToHex(tokenName2);
1264
1264
  const metadata = { [policyId]: { [tokenName2]: { ...tokenMetadata } } };
1265
- const txHex = await this.mesh.mint("1", policyId, tokenNameHex).mintingScript(forgingScript).metadataValue("721", metadata).changeAddress(walletAddress).selectUtxosFrom(utxos).complete();
1265
+ const txHex = await this.mesh.mint("1", policyId, tokenNameHex).mintingScript(forgingScript).metadataValue(721, metadata).changeAddress(walletAddress).selectUtxosFrom(utxos).complete();
1266
1266
  return txHex;
1267
1267
  };
1268
1268
  /**
@@ -4445,7 +4445,7 @@ var MeshPlutusNFTContract = class extends MeshTxInitiator {
4445
4445
  ).txInRedeemerValue(mConStr05([])).txInScript(this.getOracleCbor()).txInInlineDatumPresent().txOut(this.oracleAddress, [{ unit: oracleNftPolicyId, quantity: "1" }]).txOutInlineDatumValue(updatedOracleDatum, "JSON").mintPlutusScriptV3().mint("1", policyId, tokenNameHex).mintingScript(this.getNFTCbor());
4446
4446
  if (assetMetadata) {
4447
4447
  const metadata = { [policyId]: { [tokenName2]: { ...assetMetadata } } };
4448
- tx.metadataValue("721", metadata);
4448
+ tx.metadataValue(721, metadata);
4449
4449
  }
4450
4450
  tx.mintRedeemerValue(mConStr05([])).txOut(feeCollectorAddress, [
4451
4451
  { unit: "lovelace", quantity: lovelacePrice.toString() }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshsdk/contract",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "description": "List of open-source smart contracts, complete with documentation, live demos, and end-to-end source code. https://meshjs.dev/smart-contracts",
5
5
  "main": "./dist/index.cjs",
6
6
  "browser": "./dist/index.js",
@@ -34,9 +34,9 @@
34
34
  "typescript": "^5.3.3"
35
35
  },
36
36
  "dependencies": {
37
- "@meshsdk/common": "1.8.1",
38
- "@meshsdk/core": "1.8.1",
39
- "@meshsdk/core-csl": "1.8.1"
37
+ "@meshsdk/common": "1.8.3",
38
+ "@meshsdk/core": "1.8.3",
39
+ "@meshsdk/core-csl": "1.8.3"
40
40
  },
41
41
  "prettier": "@meshsdk/configs/prettier",
42
42
  "publishConfig": {