From 017b4cfac26ecbb4b657dfe31d26a17554dd964c Mon Sep 17 00:00:00 2001 From: rmdash <107952531+rmdash@users.noreply.github.com> Date: Fri, 28 Apr 2023 00:20:51 +0530 Subject: [PATCH 1/4] made updates to https://github.com/dashpay/platform-readme-tutorials/tree/v0.24-dev codes with Igor updates --- .DS_Store | Bin 0 -> 6148 bytes .../contract-register-minimal.js | 3 +-- .../contract-update-minimal.js | 1 - 2-Contracts-and-Documents/document-delete.js | 2 +- 2-Contracts-and-Documents/document-update.js | 2 +- 5 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..79cfb1d92b3b9bb9f85e3a1f18da5bb448cea017 GIT binary patch literal 6148 zcmeH~K}*9h6vtn-={kn6gTlN8yiVMvsKZOy<`=M{2bI~{p~c#awR49t=vlvzpTy7O zdr2mWdhsAk-hEfyQTBtgXgD3z)_W?+{3scYbwCsjvCHLol!R*9 zRg)x4b*yI^oQhK!)atX@Zs(vO+lQ@rL(V$wW<&1n@6G2GXJc#U=wxsoKP2kO$S?5A z)V5~1z%v$pvGPZ6oWv@*#puPzixHWu04u->EQ { }; const contract = await platform.contracts.create(contractDocuments, identity); - console.dir({ contract }); + console.dir({ contract: contract.toJSON() }); // Make sure contract passes validation checks - await platform.dpp.initialize(); const validationResult = await platform.dpp.dataContract.validate(contract); if (validationResult.isValid()) { diff --git a/2-Contracts-and-Documents/contract-update-minimal.js b/2-Contracts-and-Documents/contract-update-minimal.js index ec90f5c..21d69f3 100644 --- a/2-Contracts-and-Documents/contract-update-minimal.js +++ b/2-Contracts-and-Documents/contract-update-minimal.js @@ -30,7 +30,6 @@ const updateContract = async () => { existingDataContract.setDocuments(documents); // Make sure contract passes validation checks - await platform.dpp.initialize(); const validationResult = await platform.dpp.dataContract.validate( existingDataContract, ); diff --git a/2-Contracts-and-Documents/document-delete.js b/2-Contracts-and-Documents/document-delete.js index 9a945d0..eb76359 100644 --- a/2-Contracts-and-Documents/document-delete.js +++ b/2-Contracts-and-Documents/document-delete.js @@ -35,6 +35,6 @@ const deleteNoteDocument = async () => { }; deleteNoteDocument() - .then((d) => console.log('Document deleted:\n', d)) + .then((d) => console.log('Document deleted:\n', d.toJSON())) .catch((e) => console.error('Something went wrong:\n', e)) .finally(() => client.disconnect()); diff --git a/2-Contracts-and-Documents/document-update.js b/2-Contracts-and-Documents/document-update.js index 1276393..0e641ce 100644 --- a/2-Contracts-and-Documents/document-update.js +++ b/2-Contracts-and-Documents/document-update.js @@ -38,6 +38,6 @@ const updateNoteDocument = async () => { }; updateNoteDocument() - .then((d) => console.log('Document updated:\n', d)) + .then((d) => console.log('Document updated:\n', d.toJSON())) .catch((e) => console.error('Something went wrong:\n', e)) .finally(() => client.disconnect()); From 6937e0791412c8796a562a8dadcedefb19257036 Mon Sep 17 00:00:00 2001 From: thephez Date: Thu, 27 Apr 2023 15:08:20 -0400 Subject: [PATCH 2/4] chore: delete .DS_Store --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 79cfb1d92b3b9bb9f85e3a1f18da5bb448cea017..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~K}*9h6vtn-={kn6gTlN8yiVMvsKZOy<`=M{2bI~{p~c#awR49t=vlvzpTy7O zdr2mWdhsAk-hEfyQTBtgXgD3z)_W?+{3scYbwCsjvCHLol!R*9 zRg)x4b*yI^oQhK!)atX@Zs(vO+lQ@rL(V$wW<&1n@6G2GXJc#U=wxsoKP2kO$S?5A z)V5~1z%v$pvGPZ6oWv@*#puPzixHWu04u->EQ Date: Mon, 1 May 2023 18:47:10 +0530 Subject: [PATCH 3/4] igor doc update. --- .DS_Store | Bin 0 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..14a548b50826bcdedcb9d8143241118de45e59b7 GIT binary patch literal 6148 zcmeHK%}T>S5T0$TO({YT3iTH7TCtW=6fdEzFJMFuDm7_}2GguGsX3HF&iX<=iO=KA z?p7?-i-$sG24=t6`Pt2W3AzvvdooVFFdj`*K^TlM<@P#^1DSQ@ zG!7C~>*|12u_}XFeKu=#P8xQ*)tNW!*=ehZcBeg`SFF8*qqB>_Q#6j{tEOMzm#JjO z-~!&z_`}Ly+({hC_yMaIBQHi|WCoZ4W?)koF#DHP-INFB=VS($fweI}`-6>2=orj3 zs;vVX`hBE$iI4 Date: Mon, 1 May 2023 10:11:06 -0400 Subject: [PATCH 4/4] Delete .DS_Store --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 14a548b50826bcdedcb9d8143241118de45e59b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5T0$TO({YT3iTH7TCtW=6fdEzFJMFuDm7_}2GguGsX3HF&iX<=iO=KA z?p7?-i-$sG24=t6`Pt2W3AzvvdooVFFdj`*K^TlM<@P#^1DSQ@ zG!7C~>*|12u_}XFeKu=#P8xQ*)tNW!*=ehZcBeg`SFF8*qqB>_Q#6j{tEOMzm#JjO z-~!&z_`}Ly+({hC_yMaIBQHi|WCoZ4W?)koF#DHP-INFB=VS($fweI}`-6>2=orj3 zs;vVX`hBE$iI4