TransactionOutput: fix not resolving P2TR addresses in toString()
@@ -336,7 +336,7 @@ public class TransactionOutput extends ChildMessage {
Script script = getScriptPubKey();
StringBuilder buf = new StringBuilder("TxOut of ");
buf.append(Coin.valueOf(value).toFriendlyString());
- if (ScriptPattern.isP2PKH(script) || ScriptPattern.isP2WPKH(script)
+ if (ScriptPattern.isP2PKH(script) || ScriptPattern.isP2WPKH(script) || ScriptPattern.isP2TR(script)
|| ScriptPattern.isP2SH(script))
buf.append(" to ").append(script.getToAddress(params));
else if (ScriptPattern.isP2PK(script))
