Skip to content

Commit c113336

Browse files
committed
string equal -> ==
1 parent e51d5b8 commit c113336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/io/ballerina/web3/generator/DynamicFunctionGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private static String generateDecodingLogic(List<AbiOutput> outputs) {
107107
case "int256":
108108
return "decimal|error result = check hexToDecimal(response.result.substring(2));\n";
109109
case "bool":
110-
return "boolean result = response.result.equals(\"0x1\");\n";
110+
return "boolean result = response.result == \"0x1\";\n";
111111
case "address":
112112
return "string result = \"0x\" + response.result.substring(26);\n"; // Last 20 bytes
113113
case "string":

0 commit comments

Comments
 (0)