Skip to content

Commit

Permalink
Merge pull request #21 from matter-labs/ignore-zksync-fields
Browse files Browse the repository at this point in the history
Ignore zksync specific fields
  • Loading branch information
barakshani committed Sep 16, 2022
2 parents 0993241 + bbf68d9 commit fe27260
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 fe27260

Please sign in to comment.