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
495 B

defmodule Explorer.Transaction.ServiceTest do
use Explorer.DataCase
alias Explorer.Transaction.Service
describe "internal_transactions/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(transaction.hash))
assert result.id == internal_transaction.id
end
end
end