Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Fix event index (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchatruc authored Sep 25, 2023
1 parent f2cab1a commit ea50327
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/starknet_explorer_web/live/event_index_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ defmodule StarknetExplorerWeb.EventIndexLive do

@impl true
def mount(_params, _session, socket) do
block_height = BlockUtils.block_height(socket.assigns.network) - 1
{:ok, block_height} = BlockUtils.block_height(socket.assigns.network)
block_height = block_height - 1

{:ok, block} = Rpc.get_block_by_number(block_height, socket.assigns.network)

{:ok, page} =
Expand Down

0 comments on commit ea50327

Please sign in to comment.