ECKey: fix exception tests
These weren't broken as such, but they weren't distinctly checking that the right exception was thrown either.
This commit is contained in:
parent
6cfa729dae
commit
7494a146a6
3 changed files with 19 additions and 19 deletions
src
|
@ -27,7 +27,7 @@ ECKey.fromWIF = function(string) {
|
|||
var compressed = false
|
||||
|
||||
if (payload.length === 33) {
|
||||
assert.strictEqual(payload[32], 0x01, 'Invalid WIF string')
|
||||
assert.strictEqual(payload[32], 0x01, 'Invalid compression flag')
|
||||
|
||||
payload = payload.slice(0, -1)
|
||||
compressed = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue