Skip to content

Commit b4f7d13

Browse files
Merge pull request #85 from yanghang8612/fix-missing-bracket
Fix missing bracket for `tokenbalance` function
2 parents 19cc216 + 5f5f7eb commit b4f7d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsolidity/codegen/ir/IRGeneratorForStatements.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ void IRGeneratorForStatements::endVisit(FunctionCall const& _functionCall)
16341634
std::string tokenId{expressionAsType(*arguments[0], *(parameterTypes[0]))};
16351635
Whiskers templ(R"(
16361636
if iszero(lt(0xf4240, <tokenId>)) { revert(0, 0) }
1637-
if iszero(gt(exp(2, 63), <tokenId>) { revert(0, 0) }
1637+
if iszero(gt(exp(2, 63), <tokenId>)) { revert(0, 0) }
16381638
let <result> := tokenbalance(<tokenId>, <address>)
16391639
)");
16401640
templ("address", address);

0 commit comments

Comments
 (0)