From d93a58c423375e5547df27364b676c74925c3f3e Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Fri, 28 Jan 2022 10:05:23 +0100 Subject: [PATCH] Show contract creation/destruction in explorer --- static/templates/address.html | 1 + static/templates/txdetail_ethereumtype.html | 23 +++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/static/templates/address.html b/static/templates/address.html index b5b67d3d..7c661b78 100644 --- a/static/templates/address.html +++ b/static/templates/address.html @@ -108,6 +108,7 @@ {{- if $addr.Tokens -}} + {{- range $t := $addr.Tokens -}} {{- end -}} diff --git a/static/templates/txdetail_ethereumtype.html b/static/templates/txdetail_ethereumtype.html index 36aed548..aadb773e 100644 --- a/static/templates/txdetail_ethereumtype.html +++ b/static/templates/txdetail_ethereumtype.html @@ -69,11 +69,34 @@ + {{if eq $tx.EthereumSpecific.Type 1}} +
+ Contract creation +
+
+
+
+ + + + + + +
+ {{if ne $tx.EthereumSpecific.CreatedContract $addr}}{{$tx.EthereumSpecific.CreatedContract}}{{else}}{{$tx.EthereumSpecific.CreatedContract}}{{end}} +
+
+
+
+ {{end}} + {{if $tx.EthereumSpecific.InternalTransfers}}
Internal Transactions
{{- range $tt := $tx.EthereumSpecific.InternalTransfers -}} + {{if eq $tt.Type 1}}Contract creation{{end}} + {{if eq $tt.Type 2}}Contract destruction{{end}}