Skip to content

Commit

Permalink
move verification
Browse files Browse the repository at this point in the history
  • Loading branch information
chcmedeiros committed Nov 29, 2024
1 parent e94b1a1 commit 3a0ffb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Makefile.version
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ APPVERSION_M=2
# This is the `spec_version` field of `Runtime`
APPVERSION_N=35
# This is the patch version of this release
APPVERSION_P=26
APPVERSION_P=27
7 changes: 3 additions & 4 deletions app/src/tx_validate.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,14 @@ parser_error_t contains_whitespace(parsed_json_t *json) {
}
}
start = json->tokens[i].end + 1;
if (start < 0) {
return parser_json_unexpected_error;
}
} else {
return parser_ok;
}
}

if (start < 0) {
return parser_json_unexpected_error;
}

while (start < last_element_index && json->buffer[start] != '\0') {
if (is_space(json->buffer[start])) {
return parser_json_contains_whitespace;
Expand Down

0 comments on commit 3a0ffb9

Please sign in to comment.