Merge pull request #3831 from blockscout/vb-tx-type

Process type field in eth_getTransactionReceipt response
pull/3835/head
Victor Baranov 4 years ago committed by GitHub
commit 41fe715f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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