Merge pull request #4486 from sidhujag/basefeeparsing

parse base fee from eth RPC
pull/4493/head
Victor Baranov 3 years ago committed by GitHub
commit 6daab1c4e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/block.ex

@ -480,7 +480,7 @@ defmodule EthereumJSONRPC.Block do
end
defp entry_to_elixir({key, quantity})
when key in ~w(difficulty gasLimit gasUsed minimumGasPrice number size cumulativeDifficulty totalDifficulty paidFees) and
when key in ~w(difficulty gasLimit gasUsed minimumGasPrice baseFeePerGas number size cumulativeDifficulty totalDifficulty paidFees) and
not is_nil(quantity) do
{key, quantity_to_integer(quantity)}
end

Loading…
Cancel
Save