@@ -254,7 +254,7 @@ function expandOutput (script, scriptType, ourPubKey) {
254
254
}
255
255
}
256
256
257
- function checkP2shInput ( input , redeemScriptHash ) {
257
+ function checkP2SHInput ( input , redeemScriptHash ) {
258
258
if ( input . prevOutType ) {
259
259
if ( input . prevOutType !== scriptTypes . P2SH ) throw new Error ( 'PrevOutScript must be P2SH' )
260
260
@@ -292,7 +292,7 @@ function prepareInput (input, kpPubKey, redeemScript, witnessValue, witnessScrip
292
292
if ( redeemScript && witnessScript ) {
293
293
redeemScriptHash = bcrypto . hash160 ( redeemScript )
294
294
witnessScriptHash = bcrypto . sha256 ( witnessScript )
295
- checkP2shInput ( input , redeemScriptHash )
295
+ checkP2SHInput ( input , redeemScriptHash )
296
296
297
297
if ( ! redeemScript . equals ( btemplates . witnessScriptHash . output . encode ( witnessScriptHash ) ) ) throw new Error ( 'Witness script inconsistent with redeem script' )
298
298
@@ -307,7 +307,7 @@ function prepareInput (input, kpPubKey, redeemScript, witnessValue, witnessScrip
307
307
signScript = witnessScript
308
308
} else if ( redeemScript ) {
309
309
redeemScriptHash = bcrypto . hash160 ( redeemScript )
310
- checkP2shInput ( input , redeemScriptHash )
310
+ checkP2SHInput ( input , redeemScriptHash )
311
311
312
312
expanded = expandOutput ( redeemScript , undefined , kpPubKey )
313
313
if ( ! expanded . pubKeys ) throw new Error ( 'RedeemScript not supported "' + bscript . toASM ( redeemScript ) + '"' )
0 commit comments