|
|
|
@ -46,11 +46,11 @@ defmodule BlockScoutWeb.TransactionTokenTransferControllerTest do |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
test "includes token transfers for the transaction", %{conn: conn} do |
|
|
|
|
transaction = insert(:transaction) |
|
|
|
|
transaction = insert(:transaction) |> with_block() |
|
|
|
|
|
|
|
|
|
insert(:token_transfer, transaction: transaction) |
|
|
|
|
insert(:token_transfer, transaction: transaction, block: transaction.block) |
|
|
|
|
|
|
|
|
|
insert(:token_transfer, transaction: transaction) |
|
|
|
|
insert(:token_transfer, transaction: transaction, block: transaction.block) |
|
|
|
|
|
|
|
|
|
path = transaction_token_transfer_path(BlockScoutWeb.Endpoint, :index, transaction.hash) |
|
|
|
|
|
|
|
|
@ -106,7 +106,8 @@ defmodule BlockScoutWeb.TransactionTokenTransferControllerTest do |
|
|
|
|
insert( |
|
|
|
|
:token_transfer, |
|
|
|
|
transaction: transaction, |
|
|
|
|
log_index: log_index |
|
|
|
|
log_index: log_index, |
|
|
|
|
block: transaction.block |
|
|
|
|
) |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|