Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from Securrency-OSS/dev
Browse files Browse the repository at this point in the history
Merging origin dev changes
  • Loading branch information
TonioMacaronio authored Sep 22, 2023
2 parents e2db429 + 3eff227 commit dfd1d51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/code-generator/engine/modules/ConditionsGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,16 @@ class ConditionsGenerator {
compareTemplates.compareOperationValueToCompare1Bytes(),
{valueToCompare: value, i: i}
);
case this.supportedDataType.uint || this.supportedDataType.int || this.supportedDataType.bytes32:
break;
case this.supportedDataType.uint:
case this.supportedDataType.int:
case this.supportedDataType.bytes32:
case this.supportedDataType.string:
return whiskers.render(
compareTemplates.compareOperationValueToCompare32Bytes(),
{valueToCompare: valueToCompare, i: i}
);
break;
default:
throw new Error(`Unsupported data type: "${dataType}"`);
}
Expand Down

0 comments on commit dfd1d51

Please sign in to comment.