Skip to content

Commit

Permalink
Merge pull request blockscout#9572 from blockscout/va-shibarium-fix
Browse files Browse the repository at this point in the history
Fix Shibarium L1 fetcher
  • Loading branch information
vbaranov authored Mar 8, 2024
2 parents c81f900 + 168c349 commit c914e71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

### Fixes

- [#9572](https://github.com/blockscout/blockscout/pull/9572) - Fix Shibarium L1 fetcher
- [#9514](https://github.com/blockscout/blockscout/pull/9514) - Fix missing `0x` prefix for `blockNumber`, `logIndex`, `transactionIndex` and remove `transactionLogIndex` in `eth_getLogs` response.
- [#9512](https://github.com/blockscout/blockscout/pull/9512) - Docker-compose 2.24.6 compatibility
- [#9262](https://github.com/blockscout/blockscout/pull/9262) - Fix withdrawal status
Expand Down
8 changes: 1 addition & 7 deletions apps/indexer/lib/indexer/helper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,7 @@ defmodule Indexer.Helper do
def get_blocks_by_events(events, json_rpc_named_arguments, retries) do
events
|> Enum.reduce(%{}, fn event, acc ->
block_number =
if is_map(event) do
event.block_number
else
event["blockNumber"]
end

block_number = Map.get(event, :block_number, event["blockNumber"])
Map.put(acc, block_number, 0)
end)
|> Stream.map(fn {block_number, _} -> %{number: block_number} end)
Expand Down

0 comments on commit c914e71

Please sign in to comment.