|
|
@ -19,14 +19,14 @@ defmodule BlockScoutWeb.API.V2.TransactionView do |
|
|
|
ApiView.render("message.json", assigns) |
|
|
|
ApiView.render("message.json", assigns) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def render("transactions.json", %{transactions: transactions, conn: conn}) do |
|
|
|
|
|
|
|
Enum.map(transactions, &prepare_transaction(&1, conn, false)) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def render("transactions.json", %{transactions: transactions, next_page_params: next_page_params, conn: conn}) do |
|
|
|
def render("transactions.json", %{transactions: transactions, next_page_params: next_page_params, conn: conn}) do |
|
|
|
%{"items" => Enum.map(transactions, &prepare_transaction(&1, conn, false)), "next_page_params" => next_page_params} |
|
|
|
%{"items" => Enum.map(transactions, &prepare_transaction(&1, conn, false)), "next_page_params" => next_page_params} |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def render("transactions.json", %{transactions: transactions, conn: conn}) do |
|
|
|
|
|
|
|
Enum.map(transactions, &prepare_transaction(&1, conn, false)) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def render("transaction.json", %{transaction: transaction, conn: conn}) do |
|
|
|
def render("transaction.json", %{transaction: transaction, conn: conn}) do |
|
|
|
prepare_transaction(transaction, conn, true) |
|
|
|
prepare_transaction(transaction, conn, true) |
|
|
|
end |
|
|
|
end |
|
|
|