Skip to content

Commit

Permalink
Fixes chain client get_block_by_number signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesduncombe committed Oct 9, 2023
1 parent d85c7ca commit 59ca3f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/tt_eth/behaviours/chain_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ defmodule TTEth.Behaviours.ChainClient do
@callback eth_estimate_gas(tx_obj, opts) :: any

@callback eth_get_block_by_number(block_id) :: any
@callback eth_get_block_by_number(block_id, opts) :: any
@callback eth_get_block_by_number(block_id, boolean) :: any
end
4 changes: 2 additions & 2 deletions lib/tt_eth/chain_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ defmodule TTEth.ChainClient do
do: tx_obj |> HttpClient.eth_estimate_gas(opts)

@impl ChainClient
def eth_get_block_by_number("" <> block, opts \\ []),
do: block |> HttpClient.eth_get_block_by_number(opts)
def eth_get_block_by_number("" <> block, transaction_detail \\ false),
do: block |> HttpClient.eth_get_block_by_number(transaction_detail)

## Helpers outside of the ChainClient behaviour.

Expand Down

0 comments on commit 59ca3f7

Please sign in to comment.