Encodings: Updated Base58 for the latest version.
This commit is contained in:
parent
8c4301cb0a
commit
cd4583f954
|
@ -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…
Reference in New Issue