zkas/parser: Fix logic bug in check_section_structure().

This commit is contained in:
parazyd
2021-12-29 01:11:43 +01:00
parent 1247051866
commit 2cdb452987

View File

@@ -318,8 +318,8 @@ impl Parser {
);
}
if section == "constant" ||
section == "contract" && tokens[2..tokens.len() - 1].len() % 3 != 0
if (section == "constant" || section == "contract") &&
tokens[2..tokens.len() - 1].len() % 3 != 0
{
self.error(
format!(