From 520d25eb625822766012e2853da21ac0a6c18d06 Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Tue, 20 Apr 2021 10:49:24 +0300 Subject: [PATCH] Support tx type in eth_getTransactionReceipt response --- CHANGELOG.md | 1 + apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e41272101f..40b85392d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex index 8a7cd5f384..945f0c42f9 100644 --- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex +++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex @@ -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})