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

feat(anvil): support eth_getBlockReceipts method #6771

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

kallydev
Copy link
Contributor

@kallydev kallydev commented Jan 12, 2024

Motivation

The eth_getBlockReceipts method is not implemented in anvil.

{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "eth_getBlockReceipts",
  "params": [
    "0xdee810"
  ]
}
{
  "jsonrpc": "2.0",
  "id": 0,
  "error": {
    "code": -32601,
    "message": "Method not found"
  }
}

Solution

Fixed some issues in alloy, added eth_getBlockReceipts method implementation to anvil with unit tests.

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great, ty!

@mattsse mattsse merged commit d2372db into foundry-rs:master Jan 12, 2024
19 of 20 checks passed
@mattsse mattsse added the C-anvil Command: anvil label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-anvil Command: anvil
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants