From f1f112b6c6ae1fb1d099d8e67ca58d7759b25a4d Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 26 Jun 2017 03:48:07 -0700 Subject: [PATCH] bech32: minor. --- lib/utils/bech32.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/bech32.js b/lib/utils/bech32.js index fefc2ffe..6aa2a705 100644 --- a/lib/utils/bech32.js +++ b/lib/utils/bech32.js @@ -273,7 +273,7 @@ function encode(hrp, version, hash) { return serialize(hrp, data); } -if (native && native.toBech32) +if (native) encode = native.toBech32; /** @@ -304,7 +304,7 @@ function decode(str) { return new AddrResult(hrp, version, hash); } -if (native && native.fromBech32) +if (native) decode = native.fromBech32; /**