Wallet: enforce operator new

This commit is contained in:
Daniel Cousens 2014-05-30 18:46:11 +10:00
parent 4952c5f4e7
commit cde285ccfc
2 changed files with 0 additions and 6 deletions

View file

@ -6,8 +6,6 @@ var HDNode = require('./hdwallet')
var Transaction = require('./transaction').Transaction
function Wallet(seed, network) {
if (!(this instanceof Wallet)) { return new Wallet(seed, options); }
network = network || networks.bitcoin
// Stored in a closure to make accidental serialization less likely