From 0b0b5d9d933b72da81df511140a871187ecd3a53 Mon Sep 17 00:00:00 2001 From: ericlee Date: Wed, 14 Dec 2022 14:45:55 +0800 Subject: [PATCH] ignore receipt fileds for metis --- apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex index 3ecad95d68..62181ef23f 100644 --- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex +++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex @@ -304,6 +304,11 @@ defmodule EthereumJSONRPC.Receipt do :ignore end + # Metis fields + defp entry_to_elixir({key, _}) when key in ~w(l1GasUsed l1GasPrice l1FeeScalar l1Fee) do + :ignore + end + # GoQuorum specific transaction receipt fields defp entry_to_elixir({key, _}) when key in ~w(isPrivacyMarkerTransaction) do :ignore