Skip to content

feat(anvil): support eth_getBlockReceipts method#6771

Merged
mattsse merged 2 commits intofoundry-rs:masterfrom
kallydev:feat/block-receipts
Jan 12, 2024
Merged

feat(anvil): support eth_getBlockReceipts method#6771
mattsse merged 2 commits intofoundry-rs:masterfrom
kallydev:feat/block-receipts

Conversation

@kallydev
Copy link
Copy Markdown
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
Copy Markdown
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
@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