We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12e48c0 commit edc29f2Copy full SHA for edc29f2
1 file changed
src/boilerplate/orchestration/javascript/raw/boilerplate-generator.ts
@@ -43,6 +43,9 @@ class BoilerplateGenerator {
43
${stateVarIds.join('\n')}
44
\nlet ${stateName}_commitmentExists = true;
45
\nconst ${stateName}_commitment = await getCurrentWholeCommitment(${stateName}_stateVarId);
46
+ \nif (!${stateName}_commitment) {
47
+ \n\tthrow new Error('Unable to find a non-nullified ${stateName} commitment with state id ' + ${stateName}_stateVarId + '.');
48
+ \n}
49
\nconst ${stateName}_preimage = ${stateName}_commitment.preimage;
50
\nconst ${stateName} = generalise(${stateName}_preimage.value);`];
51
default:
0 commit comments