|
|
@ -405,15 +405,10 @@ defmodule BlockScoutWeb.API.RPC.TransactionControllerTest do |
|
|
|
"action" => "gettxinfo", |
|
|
|
"action" => "gettxinfo", |
|
|
|
"index" => 49, |
|
|
|
"index" => 49, |
|
|
|
"module" => "transaction", |
|
|
|
"module" => "transaction", |
|
|
|
"txhash" => "0x0000000000000000000000000000000000000000000000000000000000000000" |
|
|
|
"txhash" => "#{transaction.hash}" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
params2 = %{ |
|
|
|
params2 = response1["result"]["next_page_params"] |
|
|
|
"module" => "transaction", |
|
|
|
|
|
|
|
"action" => "gettxinfo", |
|
|
|
|
|
|
|
"txhash" => "#{transaction.hash}", |
|
|
|
|
|
|
|
"next_page_params" => response1["result"]["next_page_params"] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert response2 = |
|
|
|
assert response2 = |
|
|
|
conn |
|
|
|
conn |
|
|
@ -423,8 +418,8 @@ defmodule BlockScoutWeb.API.RPC.TransactionControllerTest do |
|
|
|
assert response2["status"] == "1" |
|
|
|
assert response2["status"] == "1" |
|
|
|
assert response2["message"] == "OK" |
|
|
|
assert response2["message"] == "OK" |
|
|
|
assert Enum.count(response2["result"]["logs"]) == 50 |
|
|
|
assert Enum.count(response2["result"]["logs"]) == 50 |
|
|
|
IO.inspect("here") |
|
|
|
assert is_nil(response2["result"]["next_page_params"]) |
|
|
|
assert response2["result"]["next_page_params"] |> IO.inspect() |
|
|
|
assert response1["result"]["logs"] != response2["result"]["logs"] |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
test "with a txhash with ok status", %{conn: conn} do |
|
|
|
test "with a txhash with ok status", %{conn: conn} do |
|
|
@ -469,7 +464,8 @@ defmodule BlockScoutWeb.API.RPC.TransactionControllerTest do |
|
|
|
"data" => "#{log.data}", |
|
|
|
"data" => "#{log.data}", |
|
|
|
"topics" => ["first topic", "second topic", nil, nil] |
|
|
|
"topics" => ["first topic", "second topic", nil, nil] |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
], |
|
|
|
|
|
|
|
"next_page_params" => nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
assert response = |
|
|
|
assert response = |
|
|
|