HDWallet prod -> mainnet
This commit is contained in:
parent
eaf84c4283
commit
02b3a2b564
4 changed files with 9 additions and 11 deletions
test
|
@ -14,7 +14,7 @@ describe('Wallet', function() {
|
|||
})
|
||||
|
||||
it('defaults to Bitcoin mainnet', function() {
|
||||
assert.equal(wallet.getMasterKey().network, 'prod')
|
||||
assert.equal(wallet.getMasterKey().network, 'mainnet')
|
||||
})
|
||||
|
||||
it('defaults to private derivationMethod', function() {
|
||||
|
@ -39,7 +39,7 @@ describe('Wallet', function() {
|
|||
|
||||
describe('networkType', function() {
|
||||
it('ensures that a mainnet Wallet has mainnet child keys (pub and priv)', function() {
|
||||
var w = Wallet("foobar", {network: "prod"})
|
||||
var w = Wallet("foobar", {network: "mainnet"})
|
||||
assert(w.getMasterKey().priv.version == mainnet)
|
||||
w.generateAddress()
|
||||
assert(w.getPrivateKey(0).priv.version == mainnet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue