Skip to content

Commit

Permalink
make block bound specifications more intuitive
Browse files Browse the repository at this point in the history
  • Loading branch information
sslivkoff committed Oct 11, 2023
1 parent d6f235b commit bb29f9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/cli/src/parse/blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ async fn parse_block_token<P: JsonRpcClient>(
end_block
};

let start_block =
if first_ref.starts_with('-') { start_block + 1 } else { start_block };

if end_block < start_block {
Err(ParseError::ParseError(
"end_block should not be less than start_block".to_string(),
Expand Down

0 comments on commit bb29f9c

Please sign in to comment.