Don't add padding to P2WSH

Fixes #209
This commit is contained in:
Jonathan Underwood 2020-02-20 10:12:57 +09:00 committed by GitHub
parent 4f3ceeb3ea
commit 7e92530e1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }