We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8666ccf commit 5f579b9Copy full SHA for 5f579b9
create-aleo-app/template-vanilla/worker.js
@@ -11,7 +11,7 @@ import {
11
await initThreadPool();
12
13
const hello_hello_program =
14
- "program hello_hello_123.aleo;\n" +
+ "program hello_hello.aleo;\n" +
15
"\n" +
16
"function hello:\n" +
17
" input r0 as u32.public;\n" +
@@ -83,12 +83,13 @@ import {
83
const result = getPrivateKey();
84
postMessage(result);
85
} else if (e.data === "deploy") {
86
- deployProgram(hello_hello_program).then(result => {
+ try {
87
+ const result = await deployProgram(hello_hello_program);
88
- }).catch(error => {
89
+ } catch (error) {
90
postMessage({ error: error.message });
- });
91
+ }
92
}
93
94
};
-
95
+
0 commit comments