@dashevo/dashpay-contract 1.0.0-pr.1937.B.2 → 1.0.0-rc.1
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/Cargo.toml +1 -1
- package/lib/systemIds.js +1 -1
- package/package.json +2 -2
- package/src/lib.rs +1 -4
- package/test/unit/schema.spec.js +4 -4
package/Cargo.toml
CHANGED
package/lib/systemIds.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/dashpay-contract",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"description": "Reference contract of the DashPay DPA on Dash Evolution",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint .",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/dashevo/dashpay-contract#readme",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@dashevo/wasm-dpp": "1.0.0-
|
|
28
|
+
"@dashevo/wasm-dpp": "1.0.0-rc.1",
|
|
29
29
|
"chai": "^4.3.10",
|
|
30
30
|
"dirty-chai": "^2.0.1",
|
|
31
31
|
"eslint": "^8.53.0",
|
package/src/lib.rs
CHANGED
|
@@ -11,10 +11,7 @@ pub const ID_BYTES: [u8; 32] = [
|
|
|
11
11
|
44, 24, 16, 146, 129, 193, 70, 231, 178, 113, 188,
|
|
12
12
|
];
|
|
13
13
|
|
|
14
|
-
pub const OWNER_ID_BYTES: [u8; 32] = [
|
|
15
|
-
65, 63, 57, 243, 204, 9, 106, 71, 187, 2, 94, 221, 190, 127, 141, 114, 137, 209, 243, 50, 60,
|
|
16
|
-
215, 90, 101, 229, 15, 115, 5, 44, 117, 182, 217,
|
|
17
|
-
];
|
|
14
|
+
pub const OWNER_ID_BYTES: [u8; 32] = [0; 32];
|
|
18
15
|
|
|
19
16
|
pub const ID: Identifier = Identifier(IdentifierBytes32(ID_BYTES));
|
|
20
17
|
pub const OWNER_ID: Identifier = Identifier(IdentifierBytes32(OWNER_ID_BYTES));
|
package/test/unit/schema.spec.js
CHANGED
|
@@ -235,7 +235,7 @@ describe('Dashpay Contract', () => {
|
|
|
235
235
|
|
|
236
236
|
const document = dpp.document.create(contract, identityId, 'profile', profileData);
|
|
237
237
|
const validationResult = document.validate(dpp.protocolVersion);
|
|
238
|
-
const error = expectJsonSchemaError(validationResult);
|
|
238
|
+
const error = expectJsonSchemaError(validationResult, 2);
|
|
239
239
|
|
|
240
240
|
expect(error.keyword)
|
|
241
241
|
.to
|
|
@@ -326,7 +326,7 @@ describe('Dashpay Contract', () => {
|
|
|
326
326
|
|
|
327
327
|
const document = dpp.document.create(contract, identityId, 'profile', profileData);
|
|
328
328
|
const validationResult = document.validate(dpp.protocolVersion);
|
|
329
|
-
const error = expectJsonSchemaError(validationResult);
|
|
329
|
+
const error = expectJsonSchemaError(validationResult, 2);
|
|
330
330
|
|
|
331
331
|
expect(error.keyword)
|
|
332
332
|
.to
|
|
@@ -681,7 +681,7 @@ describe('Dashpay Contract', () => {
|
|
|
681
681
|
|
|
682
682
|
const document = dpp.document.create(contract, identityId, 'contactRequest', contactRequestData);
|
|
683
683
|
const validationResult = document.validate(dpp.protocolVersion);
|
|
684
|
-
const error = expectJsonSchemaError(validationResult);
|
|
684
|
+
const error = expectJsonSchemaError(validationResult, 2);
|
|
685
685
|
|
|
686
686
|
expect(error.keyword)
|
|
687
687
|
.to
|
|
@@ -731,7 +731,7 @@ describe('Dashpay Contract', () => {
|
|
|
731
731
|
|
|
732
732
|
const document = dpp.document.create(contract, identityId, 'contactRequest', contactRequestData);
|
|
733
733
|
const validationResult = document.validate(dpp.protocolVersion);
|
|
734
|
-
const error = expectJsonSchemaError(validationResult);
|
|
734
|
+
const error = expectJsonSchemaError(validationResult, 2);
|
|
735
735
|
|
|
736
736
|
expect(error.keyword)
|
|
737
737
|
.to
|