Skip to content

Commit

Permalink
Merge pull request #339 from EYBlockchain/swati/backupVariableBugFix
Browse files Browse the repository at this point in the history
Swati/backup variable bug fix
  • Loading branch information
SwatiEY authored Oct 8, 2024
2 parents 546c8b0 + 892f1a6 commit 5b77f9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ export const OrchestrationCodeBoilerPlate: any = (node: any) => {

if(node.returnInputs[0]) {
node.returnInputs.forEach((input: any) => {
input == 'true' ? returnInputs.push(`1`) : input == 'false' ? returnInputs.push(`0`) : returnInputs.push(input);
input == 'true' ? returnInputs.push(`1`) : input == 'false' ? returnInputs.push(`0`) : returnInputs.push(input+'.integer');

})
}
Expand Down
2 changes: 1 addition & 1 deletion src/codeGenerators/orchestration/files/toOrchestration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ const prepareBackupVariable = (node: any) => {
deleteCommitmentsByState(requestedName, null);
const instance = await getContractInstance("AssignShield");
const instance = await getContractInstance("CONTRACT_NAME");
const backDataEvent = await instance.getPastEvents("EncryptedBackupData", {
fromBlock: 0,
Expand Down

0 comments on commit 5b77f9c

Please sign in to comment.