bech32: minor.

This commit is contained in:
Christopher Jeffrey 2017-06-26 03:48:07 -07:00
parent 518484cac0
commit f1f112b6c6
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -273,7 +273,7 @@ function encode(hrp, version, hash) {
return serialize(hrp, data); return serialize(hrp, data);
} }
if (native && native.toBech32) if (native)
encode = native.toBech32; encode = native.toBech32;
/** /**
@ -304,7 +304,7 @@ function decode(str) {
return new AddrResult(hrp, version, hash); return new AddrResult(hrp, version, hash);
} }
if (native && native.fromBech32) if (native)
decode = native.fromBech32; decode = native.fromBech32;
/** /**