remove soop from js 5
This commit is contained in:
parent
bf4d9fe41f
commit
00642dc642
1 changed files with 4 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
var imports = require('soop').imports();
|
|
||||||
|
|
||||||
var http = require('http');
|
var http = require('http');
|
||||||
var EventEmitter = imports.EventEmitter || require('events').EventEmitter;
|
var EventEmitter = require('events').EventEmitter;
|
||||||
|
var nodeUtil = require('util');
|
||||||
var async = require('async');
|
var async = require('async');
|
||||||
var preconditions = require('preconditions').singleton();
|
var preconditions = require('preconditions').singleton();
|
||||||
var parseBitcoinURI = require('./HDPath').parseBitcoinURI;
|
var parseBitcoinURI = require('./HDPath').parseBitcoinURI;
|
||||||
|
|
@ -64,6 +64,7 @@ function Wallet(opts) {
|
||||||
this.network.setHexNonces(opts.networkNonces);
|
this.network.setHexNonces(opts.networkNonces);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nodeUtil.inherits(Wallet, EventEmitter);
|
||||||
|
|
||||||
Wallet.builderOpts = {
|
Wallet.builderOpts = {
|
||||||
lockTime: null,
|
lockTime: null,
|
||||||
|
|
@ -72,7 +73,6 @@ Wallet.builderOpts = {
|
||||||
feeSat: null,
|
feeSat: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
Wallet.parent = EventEmitter;
|
|
||||||
Wallet.prototype.log = function() {
|
Wallet.prototype.log = function() {
|
||||||
if (!this.verbose) return;
|
if (!this.verbose) return;
|
||||||
if (console)
|
if (console)
|
||||||
|
|
@ -1849,4 +1849,4 @@ Wallet.request = function(options, callback) {
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = require('soop')(Wallet);
|
module.exports = Wallet;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue