mirror of
https://github.com/OutCast3k/coinbin.git
synced 2025-01-23 02:16:18 +01:00
Merge pull request #210 from junderw/patch-1
Don't add padding to P2WSH
This commit is contained in:
commit
6bb5e3785a
@ -203,7 +203,7 @@
|
|||||||
var decode = coinjs.bech32_decode(address);
|
var decode = coinjs.bech32_decode(address);
|
||||||
if(decode){
|
if(decode){
|
||||||
decode.data.shift();
|
decode.data.shift();
|
||||||
return Crypto.util.bytesToHex(coinjs.bech32_convert(decode.data, 5, 8, true));
|
return Crypto.util.bytesToHex(coinjs.bech32_convert(decode.data, 5, 8, false));
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user