diff --git a/src/main/scala/org/bitcoins/core/script/interpreter/ScriptInterpreter.scala b/src/main/scala/org/bitcoins/core/script/interpreter/ScriptInterpreter.scala index 69823dc510..b56c78db66 100644 --- a/src/main/scala/org/bitcoins/core/script/interpreter/ScriptInterpreter.scala +++ b/src/main/scala/org/bitcoins/core/script/interpreter/ScriptInterpreter.scala @@ -513,8 +513,7 @@ trait ScriptInterpreter extends CryptoInterpreter with StackInterpreter with Con } case _: WitnessTxSigComponentRaw => false case w: WitnessTxSigComponentP2SH => - val p2shScriptSig = P2SHScriptSignature(w.scriptSignature.bytes) - !p2shScriptSig.redeemScript.isInstanceOf[WitnessScriptPubKey] + !w.scriptSignature.redeemScript.isInstanceOf[WitnessScriptPubKey] case r: WitnessTxSigComponentRebuilt => r.transaction match { case wtx: WitnessTransaction =>