|
|
|
@ -5,7 +5,7 @@ defmodule ExplorerWeb.TransactionPage do |
|
|
|
|
|
|
|
|
|
import Wallaby.Query, only: [css: 1, css: 2] |
|
|
|
|
|
|
|
|
|
alias Explorer.Chain.{Transaction, Hash} |
|
|
|
|
alias Explorer.Chain.{InternalTransaction, Transaction, Hash} |
|
|
|
|
|
|
|
|
|
def click_logs(session) do |
|
|
|
|
click(session, css("[data-test='transaction_logs_link']")) |
|
|
|
@ -15,6 +15,10 @@ defmodule ExplorerWeb.TransactionPage do |
|
|
|
|
css("[data-test='transaction_detail_hash']", text: Hash.to_string(transaction_hash)) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def contract_creation_address_hash(%InternalTransaction{created_contract_address_hash: hash}) do |
|
|
|
|
css("[data-test='created_contract_address_hash']", text: Hash.to_string(hash)) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def visit_page(session, %Transaction{hash: transaction_hash}) do |
|
|
|
|
visit(session, "/en/transactions/#{transaction_hash}") |
|
|
|
|
end |
|
|
|
|