From c7ac75d81ac07146d15f47a45fff01f1fd9d0ab9 Mon Sep 17 00:00:00 2001 From: pokkst Date: Fri, 12 Feb 2021 00:34:06 -0600 Subject: [PATCH] Update SlpAddress fromP2SHHash method --- core/src/main/java/org/bitcoinj/core/slp/SlpAddress.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/bitcoinj/core/slp/SlpAddress.java b/core/src/main/java/org/bitcoinj/core/slp/SlpAddress.java index 346ecd7aaa3..4006cb1ad91 100644 --- a/core/src/main/java/org/bitcoinj/core/slp/SlpAddress.java +++ b/core/src/main/java/org/bitcoinj/core/slp/SlpAddress.java @@ -94,14 +94,14 @@ public static SlpAddress fromP2PKHHash(NetworkParameters params, byte[] hash160) /** * Returns an Address that represents the given P2SH script hash. */ - public static CashAddress fromP2SHHash(NetworkParameters params, byte[] hash160) { - return new CashAddress(params, CashAddress.CashAddressType.Script, hash160); + public static SlpAddress fromP2SHHash(NetworkParameters params, byte[] hash160) { + return new SlpAddress(params, SlpAddress.CashAddressType.Script, hash160); } /** * Returns an Address that represents the script hash extracted from the given scriptPubKey */ - public static CashAddress fromP2SHScript(NetworkParameters params, Script scriptPubKey) { + public static SlpAddress fromP2SHScript(NetworkParameters params, Script scriptPubKey) { checkArgument(scriptPubKey.isPayToScriptHash(), "Not a P2SH script"); return fromP2SHHash(params, scriptPubKey.getPubKeyHash()); }