|
|
|
@ -5,7 +5,7 @@ defmodule ExplorerWeb.TransactionListPage do |
|
|
|
|
|
|
|
|
|
import Wallaby.Query, only: [css: 1, css: 2] |
|
|
|
|
|
|
|
|
|
alias Explorer.Chain.{InternalTransaction, Transaction} |
|
|
|
|
alias Explorer.Chain.{Transaction, Transaction} |
|
|
|
|
|
|
|
|
|
def click_transaction(session, %Transaction{hash: transaction_hash}) do |
|
|
|
|
click(session, css("[data-transaction-hash='#{transaction_hash}'] [data-test='transaction_hash_link']")) |
|
|
|
@ -15,8 +15,8 @@ defmodule ExplorerWeb.TransactionListPage do |
|
|
|
|
click(session, css("[data-test='pending_transactions_link']")) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def contract_creation(%InternalTransaction{created_contract_address_hash: hash}) do |
|
|
|
|
css("[data-address-hash='#{hash}']", text: "Contract Creation") |
|
|
|
|
def contract_creation(%Transaction{hash: hash}) do |
|
|
|
|
css("[data-transaction-hash='#{hash}']", text: "Contract Creation") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def transaction(%Transaction{hash: transaction_hash}) do |
|
|
|
|