From 1cc78406b78cb2334a444a81e17152504e807d9f Mon Sep 17 00:00:00 2001 From: nine <118634361+cryptoni9n@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:36:41 -0400 Subject: [PATCH] Link address on output & tx (#3799) --- src/templates/output.rs | 6 +++--- templates/output.html | 2 +- templates/transaction.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/templates/output.rs b/src/templates/output.rs index b68e702733..37d96ab333 100644 --- a/src/templates/output.rs +++ b/src/templates/output.rs @@ -41,7 +41,7 @@ mod tests {
value
3
script pubkey
OP_DUP OP_HASH160 OP_PUSHBYTES_20 0{40} OP_EQUALVERIFY OP_CHECKSIG
-
address
1111111111111111111114oLvT2
+
address
1111111111111111111114oLvT2
transaction
1{64}
spent
false
@@ -100,7 +100,7 @@ mod tests {
value
3
script pubkey
OP_DUP OP_HASH160 OP_PUSHBYTES_20 0{40} OP_EQUALVERIFY OP_CHECKSIG
-
address
1111111111111111111114oLvT2
+
address
1111111111111111111114oLvT2
transaction
1{64}
spent
true
@@ -132,7 +132,7 @@ mod tests {
value
3
script pubkey
OP_DUP OP_HASH160 OP_PUSHBYTES_20 0{40} OP_EQUALVERIFY OP_CHECKSIG
-
address
1111111111111111111114oLvT2
+
address
1111111111111111111114oLvT2
transaction
1{64}
spent
false
diff --git a/templates/output.html b/templates/output.html index e5e6f55d60..e3e83e7c08 100644 --- a/templates/output.html +++ b/templates/output.html @@ -28,7 +28,7 @@

Output {{self.outpoint}}

value
{{ self.output.value }}
script pubkey
{{ self.output.script_pubkey.to_asm_string() }}
%% if let Ok(address) = self.chain.address_from_script(&self.output.script_pubkey ) { -
address
{{ address }}
+
address
{{ address }}
%% }
transaction
{{ self.outpoint.txid }}
spent
{{ self.spent }}
diff --git a/templates/transaction.html b/templates/transaction.html index d1e9cc29bf..1818cd939d 100644 --- a/templates/transaction.html +++ b/templates/transaction.html @@ -31,7 +31,7 @@

{{"Output".tally(self.transaction.output.len())}}

value
{{ output.value }}
script pubkey
{{ output.script_pubkey.to_asm_string() }}
%% if let Ok(address) = self.chain.address_from_script(&output.script_pubkey) { -
address
{{ address }}
+
address
{{ address }}
%% }