Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Fix alchemy endpoint json rpc parameters #257

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mev_inspect/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def _fetch_block_timestamp(w3, block_number: int) -> int:


async def _fetch_block_receipts(w3, block_number: int) -> List[Receipt]:
receipts_json = await w3.eth.get_block_receipts(block_number)
receipts_json = await w3.eth.get_block_receipts(hex(block_number))
return [Receipt(**receipt) for receipt in receipts_json]


Expand Down
2 changes: 1 addition & 1 deletion mev_inspect/fees.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


async def fetch_base_fee_per_gas(w3: Web3, block_number: int) -> int:
base_fees = await w3.eth.fee_history(1, block_number)
base_fees = await w3.eth.fee_history(1, block_number, [])
base_fees_per_gas = base_fees["baseFeePerGas"]
if len(base_fees_per_gas) == 0:
raise RuntimeError("Unexpected error - no fees returned")
Expand Down