Skip to content

Commit

Permalink
Fix colored guessed functions (EthTx#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
kchojn authored Sep 30, 2021
1 parent d7d0d56 commit f5ce883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethtx_ce/frontend/templates/transaction.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
[<span
class='delegate'>{{- address_link(call.to_address.address, call.to_address.name, call.to_address.badge) -}}</span>
{%- endif -%}
{%- if call.function_name != "0x" and call.arguments and "arg" in call.arguments[0]["name"] -%}
{%- if call.function_name != "0x" and call.arguments and ("arg" in call.arguments[0]["name"] or (call.arguments[0]["name"] == "params" and "arg" in call.arguments[0]["value"][0]["name"])) -%}
<span style='color: dodgerblue'>.{{- call.function_name -}}</span>
{%- elif call.function_name != "0x" -%}
<span style='color: darkgreen'>.{{- call.function_name -}}</span>
Expand Down Expand Up @@ -307,7 +307,7 @@ <h3>Emitted events:</h3>
<table class="table table-striped">
{% for event in events %}
<tr>
<td>
<td>
<span style="color: slategray">[{{- event.index -}}]</span>
{{ address_link(event.contract.address, event.contract.name, event.contract.badge) }}
{%- if not event.event_name.startswith("0x") and event.parameters and not event.parameters[0]["name"] -%}
Expand Down

0 comments on commit f5ce883

Please sign in to comment.