Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit 5e9e391

Browse files
committed
Update a broken test.
This test was using the previous behavior of toBuffer, which tis PR is meant to remove.
1 parent ada304d commit 5e9e391

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,11 @@ describe('privateToAddress', function () {
416416
})
417417
})
418418

419-
describe('generateAddress', function () {
420-
it('should produce an address given a public key', function () {
421-
const add = ethUtils.generateAddress('990ccf8a0de58091c028d6ff76bb235ee67c1c39', 14).toString('hex')
419+
describe('generateAddress', function() {
420+
it('should produce an address given a public key', function() {
421+
const add = ethUtils
422+
.generateAddress(Buffer.from('990ccf8a0de58091c028d6ff76bb235ee67c1c39', 'utf8'), 14)
423+
.toString('hex')
422424
assert.equal(add.toString('hex'), '936a4295d8d74e310c0c95f0a63e53737b998d12')
423425
})
424426
})

0 commit comments

Comments
 (0)