Update lib_btc.js

This commit is contained in:
tripathyr 2022-09-22 07:47:51 +05:30 committed by GitHub
parent 34dd44e0bb
commit 8d07e1201c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2678,10 +2678,10 @@
return t5;
}
coinjs.scriptcodeCreatorBasic = function (scriptpubkey){
coinjs.scriptcodeCreatorBasic = function (redeemscript){
var t1,t2;
if (scriptpubkey.substr(0,4) == "0014"){
t1 = scriptpubkey.slice(2);
if (redeemscript.substr(0,4) == "0014"){
t1 = redeemscript.slice(2);
t2 = "1976a9" + t1 + "88ac"; }
return t2;
}