Support tx type in eth_getTransactionReceipt response

pull/3831/head
Viktor Baranov 4 years ago
parent 30ca18e255
commit 520d25eb62
  1. 1
      CHANGELOG.md
  2. 2
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex

@ -15,6 +15,7 @@
- [#3748](https://github.com/blockscout/blockscout/pull/3748) - Skip null topics in eth_getLogs API endpoint
### Chore
- [#3831](https://github.com/blockscout/blockscout/pull/3831) - Process type field in eth_getTransactionReceipt response
- [#3802](https://github.com/blockscout/blockscout/pull/3802) - Extend Become a Candidate popup in Staking DApp
- [#3801](https://github.com/blockscout/blockscout/pull/3801) - Poison package update
- [#3799](https://github.com/blockscout/blockscout/pull/3799) - Update credo, dialyxir mix packages

@ -253,7 +253,7 @@ defmodule EthereumJSONRPC.Receipt do
# hash format
# gas is passed in from the `t:EthereumJSONRPC.Transaction.params/0` to allow pre-Byzantium status to be derived
defp entry_to_elixir({key, _} = entry)
when key in ~w(blockHash contractAddress from gas logsBloom root to transactionHash revertReason),
when key in ~w(blockHash contractAddress from gas logsBloom root to transactionHash revertReason type),
do: {:ok, entry}
defp entry_to_elixir({key, quantity})

Loading…
Cancel
Save