diff --git a/core/src/main/java/com/google/bitcoin/core/Transaction.java b/core/src/main/java/com/google/bitcoin/core/Transaction.java index 49b303c2..fcf2f0cc 100644 --- a/core/src/main/java/com/google/bitcoin/core/Transaction.java +++ b/core/src/main/java/com/google/bitcoin/core/Transaction.java @@ -596,7 +596,7 @@ public class Transaction extends ChildMessage implements Serializable { if (scriptSig.chunks.size() == 2) s.append(scriptSig.getFromAddress().toString()); else if (scriptSig.chunks.size() == 1) - s.append("[sig:" + bytesToHexString(scriptSig.getPubKey()) + "]"); + s.append("[sig:" + bytesToHexString(scriptSig.chunks.get(0).data) + "]"); else s.append("???"); s.append(" / ");