Skip to content

Commit 23b32fe

Browse files
committed
logs
1 parent 1aa8dcb commit 23b32fe

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

apps/itest/lib/client.ex

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ defmodule Itest.Client do
5151
}
5252

5353
{:ok, receipt_hash} = Ethereumex.HttpClient.eth_send_transaction(txmap)
54-
54+
Logger.debug("Made deposit, waiting for confirmation")
5555
wait_on_receipt_confirmed(receipt_hash)
5656
{:ok, receipt_hash}
5757
end
@@ -161,6 +161,7 @@ defmodule Itest.Client do
161161

162162
def wait_until_block_number(block_number) do
163163
{:ok, current_block_number} = get_latest_block_number()
164+
Logger.debug("Current block number #{current_block_number} looking for #{block_number}")
164165

165166
if current_block_number >= block_number do
166167
:ok

apps/itest/lib/poller.ex

+9
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ defmodule Itest.Poller do
8383
def wait_on_receipt_confirmed(receipt_hash),
8484
do: wait_on_receipt_status(receipt_hash, "0x1", @retry_count)
8585

86+
@doc """
87+
Ethereum:: Waits on the receipt status as 'confirmed'
88+
"""
89+
def wait_on_receipt_confirmed(receipt_hash, opts),
90+
do: wait_on_receipt_status(receipt_hash, opts, "0x1", @retry_count)
91+
8692
@doc """
8793
API:: Pull until the utxo is not found for the address.
8894
"""
@@ -156,6 +162,9 @@ defmodule Itest.Poller do
156162
defp get_transaction_receipt(receipt_hash),
157163
do: Ethereumex.HttpClient.eth_get_transaction_receipt(receipt_hash)
158164

165+
defp get_transaction_receipt(receipt_hash, opts),
166+
do: Ethereumex.HttpClient.eth_get_transaction_receipt(receipt_hash, opts)
167+
159168
defp pull_balance_until_amount(address, amount, currency, 0) do
160169
{:ok, response} = account_get_balances(address)
161170
data = Jason.decode!(response.body)["data"]

apps/itest/test/test_helper.exs

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ ethereum_rpc_url = fn ->
3232
end
3333
end
3434

35-
IO.inspect(ethereum_rpc_url.(), label: "WHERE TO? ethereum_rpc_url.()")
36-
3735
{:ok, result} =
3836
Ethereumex.HttpClient.eth_call(
3937
%{

config/config.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ config :ex_plasma,
2121

2222
config :tesla, adapter: Tesla.Adapter.Hackney
2323

24-
config :logger, level: :info
24+
config :logger, level: :info

0 commit comments

Comments
 (0)