Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fee history ignores block count #7778

Closed
2 tasks done
golden-expiriensu opened this issue Apr 25, 2024 · 1 comment · Fixed by #7780
Closed
2 tasks done

Fee history ignores block count #7778

golden-expiriensu opened this issue Apr 25, 2024 · 1 comment · Fixed by #7780
Labels
T-bug Type: bug

Comments

@golden-expiriensu
Copy link
Contributor

Component

Anvil

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

anvil 0.2.0 (e01038f 2024-04-25T00:29:53.100588000Z)

What command(s) is the bug in?

anvil -b 1

Operating System

macOS (Apple Silicon)

Describe the bug

Just run anvil -b 1 on latest anvil, wait for a couple of blocks and then request
{ "jsonrpc": "2.0", "method": "eth_feeHistory", "params": [ 1, "latest", [] ], "id": 0 }

Expected response contains 2 base fee 1 gas usage ratio, but actual response grows until 1025 and 1024 elements in corresponding arrays so it seems like block count arg is completely ignored and only hard limit of 1024 blocks is taken into account

@golden-expiriensu golden-expiriensu added the T-bug Type: bug label Apr 25, 2024
@golden-expiriensu
Copy link
Contributor Author

Okay fix is rather simple, issuing it in a minute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant