mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-13 11:35:40 +01:00
Remove uneeded pattern match
This commit is contained in:
parent
e3a9ad2469
commit
b30733572e
1 changed files with 2 additions and 6 deletions
|
@ -448,12 +448,8 @@ case class TaprootTxSigComponent(
|
|||
|
||||
override val witnessVersion: WitnessVersion1.type = WitnessVersion1
|
||||
|
||||
override def sigVersion: SigVersionTaproot = {
|
||||
witness match {
|
||||
case _: TaprootKeyPath => SigVersionTaprootKeySpend
|
||||
case sp: TaprootWitness => sp.sigVersion
|
||||
}
|
||||
}
|
||||
override def sigVersion: SigVersionTaproot = witness.sigVersion
|
||||
|
||||
}
|
||||
|
||||
object BaseTxSigComponent {
|
||||
|
|
Loading…
Add table
Reference in a new issue