Skip to content

Commit

Permalink
Merge #74: docode function has no enc as a parameter
Browse files Browse the repository at this point in the history
8e5e043 docode function has no enc as a parameter (Alphons van der Heijden)

Pull request description:

ACKs for top commit:
  sipa:
    utACK 8e5e043

Tree-SHA512: d0ac8b8c85b62e2c2c87605e8c361d3735b0715611919cc82f88ce65b56a82b4008106dd22bf82052dfd3180861475629de095039fc28034186ba2269df64800
  • Loading branch information
sipa committed May 31, 2022
2 parents eda7a6e + 8e5e043 commit 7a7d7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ref/javascript/segwit_addr.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function encode (hrp, version, program) {
enc = bech32.encodings.BECH32M;
}
var ret = bech32.encode(hrp, [version].concat(convertbits(program, 8, 5, true)), enc);
if (decode(hrp, ret, enc) === null) {
if (decode(hrp, ret) === null) {
return null;
}
return ret;
Expand Down

0 comments on commit 7a7d7ab

Please sign in to comment.