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

Commit

Permalink
remove IO.inspect's
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago Pittella authored and Santiago Pittella committed Nov 2, 2023
1 parent e812d86 commit bb66c74
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
3 changes: 0 additions & 3 deletions lib/starknet_explorer/block/block.ex
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ defmodule StarknetExplorer.Block do
end

StarknetExplorer.Repo.transaction(fn ->
IO.inspect("block_from_sql: #{inspect(block_from_sql)}")

block_changeset =
Ecto.Changeset.change(block_from_sql,
status: status,
Expand All @@ -151,7 +149,6 @@ defmodule StarknetExplorer.Block do
state_updated: true,
has_contracts_and_classes: true
)
|> IO.inspect()

Repo.update!(block_changeset)

Expand Down
3 changes: 1 addition & 2 deletions lib/starknet_explorer/calldata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ defmodule StarknetExplorer.Calldata do
:implementation => implementation_data
}

{:error, error} ->
error |> IO.inspect()
{:error, _error} ->
nil
end
end
Expand Down
1 change: 0 additions & 1 deletion lib/starknet_explorer/events.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ defmodule StarknetExplorer.Events do
def insert(event) do
%StarknetExplorer.Events{}
|> changeset(event)
|> IO.inspect()
|> Repo.insert()
end

Expand Down
4 changes: 2 additions & 2 deletions lib/starknet_explorer_web/live/search.ex
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ defmodule StarknetExplorerWeb.SearchLive do
end

def try_by_uuid(uuid, network) do
case Events.get_by_id(uuid, network) |> IO.inspect() do
case Events.get_by_id(uuid, network) do
event = %StarknetExplorer.Events{} ->
{:event, event}

Expand All @@ -336,7 +336,7 @@ defmodule StarknetExplorerWeb.SearchLive do
{:tx, transaction}

_ ->
case StarknetExplorer.Contract.get_by_address(hash, network) |> IO.inspect() do
case StarknetExplorer.Contract.get_by_address(hash, network) do
%StarknetExplorer.Contract{} = contract ->
{:contract, contract}

Expand Down
3 changes: 0 additions & 3 deletions lib/starknet_explorer_web/live/transaction_index_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ defmodule StarknetExplorerWeb.TransactionIndexLive do

@impl true
def handle_event("select-filter", %{"filter" => filter}, socket) do
IO.inspect(filter)
pagination(assign(socket, tx_filter: filter), 1, filter)
end

Expand Down Expand Up @@ -168,8 +167,6 @@ defmodule StarknetExplorerWeb.TransactionIndexLive do
filter
)

IO.inspect(Map.get(socket.assigns, :tx_filter))

socket = assign(socket, page: page, tx_filter: filter)
{:noreply, push_event(socket, "blur", %{})}
end
Expand Down

0 comments on commit bb66c74

Please sign in to comment.