Sitelet https://github.com/sipa/bech32/commit/8e5e043c6489f4096a55c1b1ade3fd2a0ce4aa6f
Skip to content

Commit 8e5e043

Browse files
authored
docode function has no enc as a parameter
1 parent eda7a6e commit 8e5e043

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ref/javascript/segwit_addr.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function encode (hrp, version, program) {
8484
enc = bech32.encodings.BECH32M;
8585
}
8686
var ret = bech32.encode(hrp, [version].concat(convertbits(program, 8, 5, true)), enc);
87-
if (decode(hrp, ret, enc) === null) {
87+
if (decode(hrp, ret) === null) {
8888
return null;
8989
}
9090
return ret;

0 commit comments

Comments
 (0)