diff --git a/apps/block_scout_web/test/block_scout_web/controllers/transaction_token_transfer_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/transaction_token_transfer_controller_test.exs index 6d3c83980b..72da1bc63d 100644 --- a/apps/block_scout_web/test/block_scout_web/controllers/transaction_token_transfer_controller_test.exs +++ b/apps/block_scout_web/test/block_scout_web/controllers/transaction_token_transfer_controller_test.exs @@ -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)