@meshsdk/contract 1.9.0-beta.2 → 1.9.0-beta.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 +7 -2
- package/dist/index.js +7 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -53055,9 +53055,14 @@ var fromPlutusDataToJson = (data) => {
|
|
|
53055
53055
|
const plutusData = data.asConstrPlutusData();
|
|
53056
53056
|
if (plutusData) {
|
|
53057
53057
|
const fields = plutusData.getData();
|
|
53058
|
+
const list2 = [];
|
|
53059
|
+
for (let i = 0; i < fields.getLength(); i++) {
|
|
53060
|
+
const element = fields.get(i);
|
|
53061
|
+
list2.push(fromPlutusDataToJson(element));
|
|
53062
|
+
}
|
|
53058
53063
|
return {
|
|
53059
53064
|
constructor: plutusData.getAlternative(),
|
|
53060
|
-
fields:
|
|
53065
|
+
fields: list2
|
|
53061
53066
|
};
|
|
53062
53067
|
} else {
|
|
53063
53068
|
throw new Error("Invalid constructor data found");
|
|
@@ -53091,7 +53096,7 @@ var fromPlutusDataToJson = (data) => {
|
|
|
53091
53096
|
const element = plutusList.get(i);
|
|
53092
53097
|
list2.push(fromPlutusDataToJson(element));
|
|
53093
53098
|
}
|
|
53094
|
-
return list2;
|
|
53099
|
+
return { list: list2 };
|
|
53095
53100
|
} else {
|
|
53096
53101
|
throw new Error("Invalid list data found");
|
|
53097
53102
|
}
|
package/dist/index.js
CHANGED
|
@@ -53069,9 +53069,14 @@ var fromPlutusDataToJson = (data) => {
|
|
|
53069
53069
|
const plutusData = data.asConstrPlutusData();
|
|
53070
53070
|
if (plutusData) {
|
|
53071
53071
|
const fields = plutusData.getData();
|
|
53072
|
+
const list2 = [];
|
|
53073
|
+
for (let i = 0; i < fields.getLength(); i++) {
|
|
53074
|
+
const element = fields.get(i);
|
|
53075
|
+
list2.push(fromPlutusDataToJson(element));
|
|
53076
|
+
}
|
|
53072
53077
|
return {
|
|
53073
53078
|
constructor: plutusData.getAlternative(),
|
|
53074
|
-
fields:
|
|
53079
|
+
fields: list2
|
|
53075
53080
|
};
|
|
53076
53081
|
} else {
|
|
53077
53082
|
throw new Error("Invalid constructor data found");
|
|
@@ -53105,7 +53110,7 @@ var fromPlutusDataToJson = (data) => {
|
|
|
53105
53110
|
const element = plutusList.get(i);
|
|
53106
53111
|
list2.push(fromPlutusDataToJson(element));
|
|
53107
53112
|
}
|
|
53108
|
-
return list2;
|
|
53113
|
+
return { list: list2 };
|
|
53109
53114
|
} else {
|
|
53110
53115
|
throw new Error("Invalid list data found");
|
|
53111
53116
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/contract",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.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,8 +34,8 @@
|
|
|
34
34
|
"typescript": "^5.3.3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@meshsdk/common": "1.9.0-beta.
|
|
38
|
-
"@meshsdk/core": "1.9.0-beta.
|
|
37
|
+
"@meshsdk/common": "1.9.0-beta.3",
|
|
38
|
+
"@meshsdk/core": "1.9.0-beta.3"
|
|
39
39
|
},
|
|
40
40
|
"prettier": "@meshsdk/configs/prettier",
|
|
41
41
|
"publishConfig": {
|