network: always use lowercase
This commit is contained in:
parent
b68b1d5da4
commit
553ade1208
8 changed files with 26 additions and 26 deletions
test
|
@ -56,10 +56,10 @@ describe('Bitcoin-core', function() {
|
|||
|
||||
assert.equal(address.hash.toString('hex'), hex)
|
||||
if (params.addrType === 'pubkey') {
|
||||
assert.equal(address.version, network.pubKeyHash)
|
||||
assert.equal(address.version, network.pubkeyhash)
|
||||
|
||||
} else if (params.addrType === 'script') {
|
||||
assert.equal(address.version, network.scriptHash)
|
||||
assert.equal(address.version, network.scripthash)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@ -68,10 +68,10 @@ describe('Bitcoin-core', function() {
|
|||
// base58_keys_invalid
|
||||
describe('Address', function() {
|
||||
var allowedNetworks = [
|
||||
networks.bitcoin.pubKeyHash,
|
||||
networks.bitcoin.scriptHash,
|
||||
networks.testnet.pubKeyHash,
|
||||
networks.testnet.scriptHash
|
||||
networks.bitcoin.pubkeyhash,
|
||||
networks.bitcoin.scripthash,
|
||||
networks.testnet.pubkeyhash,
|
||||
networks.testnet.scripthash
|
||||
]
|
||||
|
||||
base58_keys_invalid.forEach(function(f) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue