From 59d173846434eeb3b04c1ee4f18938fbcc489df0 Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Fri, 25 Aug 2017 17:00:23 -0400 Subject: [PATCH] decode OP_RETURN content to ascii --- views/transaction.pug | 3 +++ 1 file changed, 3 insertions(+) diff --git a/views/transaction.pug b/views/transaction.pug index 1de3c8e..ca79b43 100644 --- a/views/transaction.pug +++ b/views/transaction.pug @@ -269,6 +269,9 @@ block content td if (vout.scriptPubKey && vout.scriptPubKey.asm) span(class="word-wrap monospace") #{vout.scriptPubKey.asm} + if (vout.scriptPubKey.asm.startsWith("OP_RETURN")) + br + span(class="word-wrap monospace text-muted") (decoded) #{utils.hex2ascii(vout.scriptPubKey.asm)} div(id="tab-raw", class="tab-pane", role="tabpanel") div(class="highlight")