dash-platform-sdk 1.1.6 → 1.1.7
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/package.json
CHANGED
|
@@ -66,7 +66,7 @@ function getByIdentifier(grpcPool, identifier) {
|
|
|
66
66
|
if (metadata == null) {
|
|
67
67
|
throw new Error('Metadata not found');
|
|
68
68
|
}
|
|
69
|
-
_b = (0, wasm_drive_verify_1.verifyContract)(proof.grovedbProof, undefined,
|
|
69
|
+
_b = (0, wasm_drive_verify_1.verifyContract)(proof.grovedbProof, undefined, false, false, id.bytes(), 9), rootHash = _b.root_hash, contract = _b.contract;
|
|
70
70
|
if (contract == null) {
|
|
71
71
|
throw new Error("Data Contract with identifier ".concat(id.base58(), " not found"));
|
|
72
72
|
}
|
|
@@ -80,23 +80,26 @@ describe('DataContract', function () {
|
|
|
80
80
|
var dataContract;
|
|
81
81
|
return __generator(this, function (_a) {
|
|
82
82
|
switch (_a.label) {
|
|
83
|
-
case 0: return [4 /*yield*/, sdk.dataContracts.getDataContractByIdentifier('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
84
|
-
// User Data Contract
|
|
85
|
-
];
|
|
83
|
+
case 0: return [4 /*yield*/, sdk.dataContracts.getDataContractByIdentifier('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')];
|
|
86
84
|
case 1:
|
|
87
85
|
// System Data Contract
|
|
88
86
|
dataContract = _a.sent();
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
];
|
|
87
|
+
expect(dataContract).toEqual(expect.any(pshenmic_dpp_1.DataContractWASM));
|
|
88
|
+
return [4 /*yield*/, sdk.dataContracts.getDataContractByIdentifier('Aukz296s36am6wKStoMbxm4YhC6kTpu3mERVrC7vHokP')];
|
|
92
89
|
case 2:
|
|
93
90
|
// User Data Contract
|
|
94
91
|
dataContract = _a.sent();
|
|
92
|
+
expect(dataContract).toEqual(expect.any(pshenmic_dpp_1.DataContractWASM));
|
|
95
93
|
return [4 /*yield*/, sdk.dataContracts.getDataContractByIdentifier('DrEhmVJz56ukHbaFt8xLVRasnNWsrx3x8dGtcu9xg6rV')];
|
|
96
94
|
case 3:
|
|
97
95
|
// User Data Contract with keep history
|
|
98
96
|
dataContract = _a.sent();
|
|
99
97
|
expect(dataContract).toEqual(expect.any(pshenmic_dpp_1.DataContractWASM));
|
|
98
|
+
return [4 /*yield*/, sdk.dataContracts.getDataContractByIdentifier('3XtMFe9UPf75DAcLmLsX9CLTrLPNysNPMcnWCE1C39vm')];
|
|
99
|
+
case 4:
|
|
100
|
+
// Token Data Contract
|
|
101
|
+
dataContract = _a.sent();
|
|
102
|
+
expect(dataContract).toEqual(expect.any(pshenmic_dpp_1.DataContractWASM));
|
|
100
103
|
return [2 /*return*/];
|
|
101
104
|
}
|
|
102
105
|
});
|