|
|
@ -437,7 +437,8 @@ defmodule EthereumJSONRPC.Block do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
defp entry_to_elixir({key, quantity}) |
|
|
|
defp entry_to_elixir({key, quantity}) |
|
|
|
when key in ~w(difficulty gasLimit gasUsed minimumGasPrice number size totalDifficulty) and not is_nil(quantity) do |
|
|
|
when key in ~w(difficulty gasLimit gasUsed minimumGasPrice number size totalDifficulty paidFees) and |
|
|
|
|
|
|
|
not is_nil(quantity) do |
|
|
|
{key, quantity_to_integer(quantity)} |
|
|
|
{key, quantity_to_integer(quantity)} |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -451,7 +452,7 @@ defmodule EthereumJSONRPC.Block do |
|
|
|
# hash format |
|
|
|
# hash format |
|
|
|
defp entry_to_elixir({key, _} = entry) |
|
|
|
defp entry_to_elixir({key, _} = entry) |
|
|
|
when key in ~w(author extraData hash logsBloom miner mixHash nonce parentHash receiptsRoot sealFields sha3Uncles |
|
|
|
when key in ~w(author extraData hash logsBloom miner mixHash nonce parentHash receiptsRoot sealFields sha3Uncles |
|
|
|
signature stateRoot step transactionsRoot uncles), |
|
|
|
signature stateRoot step transactionsRoot uncles bitcoinMergedMiningCoinbaseTransaction bitcoinMergedMiningHeader bitcoinMergedMiningMerkleProof hashForMergedMining), |
|
|
|
do: entry |
|
|
|
do: entry |
|
|
|
|
|
|
|
|
|
|
|
defp entry_to_elixir({"timestamp" = key, timestamp}) do |
|
|
|
defp entry_to_elixir({"timestamp" = key, timestamp}) do |
|
|
|