Skip to content

Commit

Permalink
fix(anvil): take block count limit in fee history into account (#7780)
Browse files Browse the repository at this point in the history
  • Loading branch information
golden-expiriensu authored Apr 25, 2024
1 parent e01038f commit 651cec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/anvil/src/eth/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ impl EthApi {
}

const MAX_BLOCK_COUNT: u64 = 1024u64;
let block_count = block_count.to::<u64>().max(MAX_BLOCK_COUNT);
let block_count = block_count.to::<u64>().min(MAX_BLOCK_COUNT);

// highest and lowest block num in the requested range
let highest = number;
Expand Down

0 comments on commit 651cec1

Please sign in to comment.