Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imple alpine #78

Merged
14 commits merged into from
Sep 21, 2021
7 changes: 2 additions & 5 deletions lib/archethic_web/live/transaction_details_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ defmodule ArchEthicWeb.TransactionDetailsLive do
assign(socket, %{
exists: false,
previous_address: nil,
transaction: nil,
tab_panel: "tx",
operation_section: "transaction_movements"
transaction: nil
})}
end

Expand Down Expand Up @@ -72,7 +70,7 @@ defmodule ArchEthicWeb.TransactionDetailsLive do

defp handle_transaction(
socket,
tx = %Transaction{address: address, data: %TransactionData{content: content}}
tx = %Transaction{address: address, data: %TransactionData{content: _content}}
ambareesha7 marked this conversation as resolved.
Show resolved Hide resolved
) do
balance = ArchEthic.get_balance(address)
previous_address = Transaction.previous_address(tx)
Expand All @@ -88,7 +86,6 @@ defmodule ArchEthicWeb.TransactionDetailsLive do
|> assign(:inputs, ledger_inputs)
|> assign(:calls, contract_inputs)
|> assign(:address, address)
|> assign(:hide_content, byte_size(content) > 1000)
end

def handle_not_existing_transaction(socket, address) do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>
<% end %>
<div class="is-2" x-data="{
tab_panel: '<%= @tab_panel %>',
tab_panel: 'tx',
show_content: true,
data_section: 'code',
operation_section: 'transaction_movements'
Expand Down
130 changes: 0 additions & 130 deletions transaction_HTTP_response.txt

This file was deleted.