@iexec/iapp-maker 0.0.1-alpha-nightly-40854aeaac20da732cc91cf4720604252875830e → 0.0.1-alpha-nightly-c808af829ce4b10cbbecdbc64ec7fa9b8cf3558d
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@iexec/iapp-maker",
|
3
|
-
"version": "0.0.1-alpha-nightly-
|
3
|
+
"version": "0.0.1-alpha-nightly-c808af829ce4b10cbbecdbc64ec7fa9b8cf3558d",
|
4
4
|
"description": "A CLI to guide you through the process of building an iExec iApp",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"type": "module",
|
package/templates/js/src/app.js
CHANGED
@@ -22,12 +22,9 @@ const main = async () => {
|
|
22
22
|
|
23
23
|
try {
|
24
24
|
const deserializer = new IExecDataProtectorDeserializer();
|
25
|
-
// The protected data created for the purpose of this Hello World journey
|
26
|
-
// contains
|
27
|
-
|
28
|
-
// 2- "iapp run": Pass it a real protected data address:
|
29
|
-
// `iapp run <iapp-address> --protectedData 0x3FFb9D62b527b32230DFf094D24A661495aDb0B4`
|
30
|
-
const protectedName = await deserializer.getValue('name', 'string');
|
25
|
+
// The protected data mock created for the purpose of this Hello World journey
|
26
|
+
// contains an object with a key "secretText" which is a string
|
27
|
+
const protectedName = await deserializer.getValue('secretText', 'string');
|
31
28
|
console.log('Found a protected data');
|
32
29
|
messages.push(protectedName);
|
33
30
|
} catch (e) {
|
Binary file
|