remove Address constructor
This commit is contained in:
parent
340e7fb917
commit
13f414c122
6 changed files with 51 additions and 68 deletions
test
|
@ -65,10 +65,10 @@ describe('Bitcoin-core', function () {
|
|||
}
|
||||
|
||||
it('can import ' + string, function () {
|
||||
var address = Address.fromBase58Check(string)
|
||||
var decode = Address.fromBase58Check(string)
|
||||
|
||||
assert.strictEqual(address.hash.toString('hex'), hex)
|
||||
assert.strictEqual(address.version, network[typeMap[params.addrType]])
|
||||
assert.strictEqual(decode.hash.toString('hex'), hex)
|
||||
assert.strictEqual(decode.version, network[typeMap[params.addrType]])
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue