Encodings: Updated Base58 for the latest version.

This commit is contained in:
Braydon Fuller 2014-11-25 14:40:43 -05:00
parent 8c4301cb0a
commit cd4583f954
1 changed files with 1 additions and 1 deletions

View File

@ -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) {