network: always use lowercase

This commit is contained in:
Daniel Cousens 2014-06-14 00:30:13 +10:00
parent b68b1d5da4
commit 553ade1208
8 changed files with 26 additions and 26 deletions

View file

@ -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) {