@@ -254,7 +254,7 @@ function expandOutput (script, scriptType, ourPubKey) {
254254 }
255255}
256256
257- function checkP2shInput ( input , redeemScriptHash ) {
257+ function checkP2SHInput ( input , redeemScriptHash ) {
258258 if ( input . prevOutType ) {
259259 if ( input . prevOutType !== scriptTypes . P2SH ) throw new Error ( 'PrevOutScript must be P2SH' )
260260
@@ -292,7 +292,7 @@ function prepareInput (input, kpPubKey, redeemScript, witnessValue, witnessScrip
292292 if ( redeemScript && witnessScript ) {
293293 redeemScriptHash = bcrypto . hash160 ( redeemScript )
294294 witnessScriptHash = bcrypto . sha256 ( witnessScript )
295- checkP2shInput ( input , redeemScriptHash )
295+ checkP2SHInput ( input , redeemScriptHash )
296296
297297 if ( ! redeemScript . equals ( btemplates . witnessScriptHash . output . encode ( witnessScriptHash ) ) ) throw new Error ( 'Witness script inconsistent with redeem script' )
298298
@@ -307,7 +307,7 @@ function prepareInput (input, kpPubKey, redeemScript, witnessValue, witnessScrip
307307 signScript = witnessScript
308308 } else if ( redeemScript ) {
309309 redeemScriptHash = bcrypto . hash160 ( redeemScript )
310- checkP2shInput ( input , redeemScriptHash )
310+ checkP2SHInput ( input , redeemScriptHash )
311311
312312 expanded = expandOutput ( redeemScript , undefined , kpPubKey )
313313 if ( ! expanded . pubKeys ) throw new Error ( 'RedeemScript not supported "' + bscript . toASM ( redeemScript ) + '"' )
0 commit comments