Skip to content

Commit

Permalink
Ignore zksync specific fields
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Sep 16, 2022
1 parent 0993241 commit bbf68d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/block.ex
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,8 @@ defmodule EthereumJSONRPC.Block do
{key, Transactions.to_elixir(transactions)}
end

# Arbitrum fields
defp entry_to_elixir({"l1BlockNumber", _}) do
# Arbitrum/ZkSync fields
defp entry_to_elixir({key, _}) when key in ~w(l1BlockNumber l1BatchNumber l1BatchTxIndex) do
{:ignore, :ignore}
end
end
4 changes: 2 additions & 2 deletions apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ defmodule EthereumJSONRPC.Receipt do
:ignore
end

# Arbitrum fields
defp entry_to_elixir({key, _}) when key in ~w(returnData returnCode feeStats l1BlockNumber) do
# Arbitrum/ZkSync fields
defp entry_to_elixir({key, _}) when key in ~w(returnData returnCode feeStats l1BlockNumber l1BatchNumber l1BatchTxIndex) do
:ignore
end

Expand Down

0 comments on commit bbf68d9

Please sign in to comment.