Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
blockscout/test/explorer/services/transaction_test.exs

16 lines
542 B

defmodule Explorer.Transaction.ServiceTest do
use Explorer.DataCase
alias Explorer.Transaction.Service
describe "internal_transactions_from_transaction_hash/1" do
test "it returns all internal transactions for a given hash" do
transaction = insert(:transaction)
internal_transaction = insert(:internal_transaction, transaction_id: transaction.id)
result = hd(Service.internal_transactions_from_transaction_hash(transaction.hash))
assert result.id == internal_transaction.id
end
end
end