From 2a12423b886483089cd04386c7a0de295b57f6bf Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Tue, 18 Jul 2023 17:56:40 +0300 Subject: [PATCH] Op Stack: ignore depositNonce --- CHANGELOG.md | 1 + apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex | 5 +++++ apps/indexer/lib/indexer/transform/token_transfers.ex | 3 +-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f87304fd26..40584e9654 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ ### Chore +- [#7963](https://github.com/blockscout/blockscout/pull/7963) - Op Stack: ignore depositNonce - [#7954](https://github.com/blockscout/blockscout/pull/7954) - Enhance Account Explorer.Account.Notifier.Email module tests - [#7950](https://github.com/blockscout/blockscout/pull/7950) - Add GA CI for Eth Goerli chain - [#7934](https://github.com/blockscout/blockscout/pull/7934), [#7936](https://github.com/blockscout/blockscout/pull/7936) - Explicitly set consensus == true in queries (convenient for search), remove logger requirements, where it is not used anymore diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex index 62181ef23f..00ededb8d8 100644 --- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex +++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex @@ -314,6 +314,11 @@ defmodule EthereumJSONRPC.Receipt do :ignore end + # Optimism specific transaction receipt fields + defp entry_to_elixir({key, _}) when key in ~w(depositNonce) do + :ignore + end + defp entry_to_elixir({key, value}) do {:error, {:unknown_key, %{key: key, value: value}}} end diff --git a/apps/indexer/lib/indexer/transform/token_transfers.ex b/apps/indexer/lib/indexer/transform/token_transfers.ex index 3292cd2935..80d153d0f2 100644 --- a/apps/indexer/lib/indexer/transform/token_transfers.ex +++ b/apps/indexer/lib/indexer/transform/token_transfers.ex @@ -6,9 +6,8 @@ defmodule Indexer.Transform.TokenTransfers do require Logger alias ABI.TypeDecoder - alias Explorer.{Chain, Repo} + alias Explorer.Repo alias Explorer.Chain.{Token, TokenTransfer} - alias Explorer.Token.MetadataRetriever alias Indexer.Fetcher.TokenTotalSupplyUpdater @burn_address "0x0000000000000000000000000000000000000000"