Skip to content

Commit

Permalink
Merge pull request #318 from EYBlockchain/lydia/unknownStructEncrypt
Browse files Browse the repository at this point in the history
fix: error in SimpleStruct6 due to encrypting unknown structs
  • Loading branch information
lydiagarms authored Jul 23, 2024
2 parents c23bf1a + ef686bb commit 423ad72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 423ad72

Please sign in to comment.