diff --git a/lib/util.js b/lib/util.js index 1610d2b..4811c43 100644 --- a/lib/util.js +++ b/lib/util.js @@ -170,7 +170,7 @@ var addressToPubKeyHash = exports.addressToPubKeyHash = function (address) { } // Decode - var buffer = decodeBase58(address); + var buffer = new Buffer(decodeBase58(address)); // Parse var parser = Binary.parse(buffer);