Browse Source

Encodings: Updated Base58 for the latest version.

patch-2
Braydon Fuller 10 years ago
parent
commit
cd4583f954
  1. 2
      lib/encoding/base58.js

2
lib/encoding/base58.js

@ -30,7 +30,7 @@ Base58.encode = function(buf) {
Base58.decode = function(str) {
if (typeof str !== 'string')
throw new Error('Input should be a string');
return bs58.decode(str);
return new Buffer(bs58.decode(str));
};
Base58.prototype.fromBuffer = function(buf) {

Loading…
Cancel
Save