diff --git a/package.json b/package.json index 767610c..b5fe503 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ }, "devDependencies": { "browserify": "^5.12.0", + "bs58": "^2.0.0", "coveralls": "^2.11.2", "helloblock-js": "^0.2.5", "istanbul": "^0.3.2", @@ -73,7 +74,6 @@ }, "dependencies": { "bigi": "^1.1.0", - "bs58": "1.2.1", "bs58check": "1.0.1", "crypto-browserify": "3.2.4", "ecurve": "1.0.0" diff --git a/test/bitcoin.core.js b/test/bitcoin.core.js index 5cf004b..3560c81 100644 --- a/test/bitcoin.core.js +++ b/test/bitcoin.core.js @@ -27,7 +27,7 @@ describe('Bitcoin-core', function() { it('can decode ' + fb58, function() { var buffer = base58.decode(fb58) - var actual = buffer.toString('hex') + var actual = new Buffer(buffer).toString('hex') assert.equal(actual, fhex) })