Commit 9b119d08 authored by Sergei Zubov's avatar Sergei Zubov

Fix txId in address view

parent 052e8611
...@@ -93,8 +93,9 @@ ...@@ -93,8 +93,9 @@
@foreach (var transaction in Model.Transactions) @foreach (var transaction in Model.Transactions)
{ {
total += (double)transaction.Value; total += (double)transaction.Value;
string transactionId = (transaction.TransactionHash == null || transaction.TransactionHash == "" ? transaction.CoinBase : transaction.TransactionHash).ToString();
<tr> <tr>
<td><a asp-controller="BlockExplorer" asp-action="Transaction" asp-route-transactionId="@transaction.TransactionHash ?? @transaction.CoinBase">(@transaction.TransactionHash ?? @transaction.CoinBase).ToString().Substring(0, 25)...</a></td> <td><a asp-controller="BlockExplorer" asp-action="Transaction" asp-route-transactionId="@transactionId">@transactionId.Substring(0, 25)...</a></td>
<td><a asp-controller="BlockExplorer" asp-action="Block" asp-route-block="@transaction.BlockIndex">@transaction.BlockIndex</a></td> <td><a asp-controller="BlockExplorer" asp-action="Block" asp-route-block="@transaction.BlockIndex">@transaction.BlockIndex</a></td>
<td>-</td> <td>-</td>
<td><span class="@(transaction.Value > 0 ? "green" : "red")">@transaction.Value.ToString("N8") @Model.CoinTag</span></td> <td><span class="@(transaction.Value > 0 ? "green" : "red")">@transaction.Value.ToString("N8") @Model.CoinTag</span></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment