Skip to content

Commit

Permalink
Merge pull request #297 from EYBlockchain/lydia/restoreDBbugs
Browse files Browse the repository at this point in the history
fix: error in Bucket of Balls
  • Loading branch information
SwatiEY authored Jun 28, 2024
2 parents 1bad441 + f26561c commit bf5cb4b
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -582,10 +582,17 @@ encryptBackupPreimage = {
let plainText;
let varName = mappingName ? mappingName : stateName;
if (mappingKey){
plainText = `[BigInt(${saltName}.hex(32)), BigInt(${mappingKey}.hex(32)),
BigInt(generalise(${stateName}_stateVarIdInit).hex(32)),
${valueName}]`;
varName += ` a`;
if (mappingKey === 'msg'){
plainText = `[BigInt(${saltName}.hex(32)), BigInt(${stateName}_stateVarId_key.hex(32)),
BigInt(generalise(${stateName}_stateVarIdInit).hex(32)),
${valueName}]`;
varName += ` a`;
} else {
plainText = `[BigInt(${saltName}.hex(32)), BigInt(${mappingKey}.hex(32)),
BigInt(generalise(${stateName}_stateVarIdInit).hex(32)),
${valueName}]`;
varName += ` a`;
}
} else{
plainText = `[BigInt(${saltName}.hex(32)), BigInt(${stateName}_stateVarId),
${valueName}]`;
Expand Down

0 comments on commit bf5cb4b

Please sign in to comment.