Skip to content

Commit

Permalink
txscript: fix script typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hieblmi committed Apr 20, 2023
1 parent a18c2cf commit 42653cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions txscript/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,19 @@ func IsPayToScriptHash(script []byte) bool {
return isScriptHashScript(script)
}

// IsPayToWitnessScriptHash returns true if the is in the standard
// IsPayToWitnessScriptHash returns true if the script is in the standard
// pay-to-witness-script-hash (P2WSH) format, false otherwise.
func IsPayToWitnessScriptHash(script []byte) bool {
return isWitnessScriptHashScript(script)
}

// IsPayToWitnessPubKeyHash returns true if the is in the standard
// IsPayToWitnessPubKeyHash returns true if the script is in the standard
// pay-to-witness-pubkey-hash (P2WKH) format, false otherwise.
func IsPayToWitnessPubKeyHash(script []byte) bool {
return isWitnessPubKeyHashScript(script)
}

// IsPayToTaproot returns true if if the passed script is a standard
// IsPayToTaproot returns true if the passed script is a standard
// pay-to-taproot (PTTR) scripts, and false otherwise.
func IsPayToTaproot(script []byte) bool {
return isWitnessTaprootScript(script)
Expand Down

0 comments on commit 42653cd

Please sign in to comment.