diff --git a/src/boilerplate/orchestration/javascript/raw/boilerplate-generator.ts b/src/boilerplate/orchestration/javascript/raw/boilerplate-generator.ts index cbfb7b3c..0e11d925 100644 --- a/src/boilerplate/orchestration/javascript/raw/boilerplate-generator.ts +++ b/src/boilerplate/orchestration/javascript/raw/boilerplate-generator.ts @@ -566,7 +566,7 @@ encryptBackupPreimage = { let saltName = ''; switch (stateType) { case 'increment': - valueName = `BigInt(${stateName}_newCommitmentValue.hex(32))`; + valueName = structProperties ? `...${stateName}_newCommitmentValue.hex(32).map(v => BigInt(v))` : `BigInt(${stateName}_newCommitmentValue.hex(32))`; saltName = stateName + '_newSalt'; break; case 'decrement':