File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
boilerplate/orchestration/javascript/raw Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1052,7 +1052,7 @@ export const OrchestrationCodeBoilerPlate: any = (node: any) => {
10521052 \n if (!tx) {
10531053 throw new Error( 'Tx failed - the commitment was not accepted on-chain, or the contract is not deployed.');
10541054 } \n` ;
1055- if ( ! node . newCommitmentsRequired ) {
1055+ if ( ! node . newCommitmentsRequired ) {
10561056 checkLeaves = '' ;
10571057 }
10581058 return {
Original file line number Diff line number Diff line change @@ -142,10 +142,11 @@ export class FunctionDefinitionIndicator extends ContractDefinitionIndicator {
142142 let burnedOnly = true ;
143143 for ( const [ , stateVarIndicator ] of Object . entries ( this ) ) {
144144 if ( ! ( stateVarIndicator instanceof StateVariableIndicator ) ) continue ; // eslint-disable-line no-continue, no-use-before-define
145- // if we have a indicator which is NOT burned, then we do need new commitments
145+ // if we have a indicator which is NOT burned and requires new commitments , then we do need new commitments
146146 if (
147147 stateVarIndicator . isSecret &&
148- ( ! stateVarIndicator . isBurned || stateVarIndicator . newCommitmentsRequired )
148+ ! stateVarIndicator . isBurned &&
149+ stateVarIndicator . newCommitmentsRequired
149150 ) {
150151 burnedOnly = false ;
151152 break ;
You can’t perform that action at this time.
0 commit comments