mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
zkas/parser: Fix logic bug in check_section_structure().
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user