mirror of https://github.com/status-im/web3.js.git
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
bc1c3c7d7e
|
@ -21,7 +21,7 @@ which implements the [Generic JSON RPC](https://github.com/ethereum/wiki/wiki/JS
|
||||||
|
|
||||||
<!-- [![browser support](https://ci.testling.com/ethereum/ethereum.js.png)](https://ci.testling.com/ethereum/ethereum.js) -->
|
<!-- [![browser support](https://ci.testling.com/ethereum/ethereum.js.png)](https://ci.testling.com/ethereum/ethereum.js) -->
|
||||||
|
|
||||||
You need to run a local ethrereum node to use this library.
|
You need to run a local Ethereum node to use this library.
|
||||||
|
|
||||||
[Documentation](https://github.com/ethereum/wiki/wiki/JavaScript-API)
|
[Documentation](https://github.com/ethereum/wiki/wiki/JavaScript-API)
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ var getOptions = function (options) {
|
||||||
|
|
||||||
if (utils.isString(options)) {
|
if (utils.isString(options)) {
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
|
||||||
|
@ -69,8 +69,8 @@ var getOptions = function (options) {
|
||||||
to: options.to,
|
to: options.to,
|
||||||
address: options.address,
|
address: options.address,
|
||||||
fromBlock: formatters.inputBlockNumberFormatter(options.fromBlock),
|
fromBlock: formatters.inputBlockNumberFormatter(options.fromBlock),
|
||||||
toBlock: formatters.inputBlockNumberFormatter(options.toBlock)
|
toBlock: formatters.inputBlockNumberFormatter(options.toBlock)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -78,7 +78,7 @@ Adds the callback and sets up the methods, to iterate over the results.
|
||||||
|
|
||||||
@method getLogsAtStart
|
@method getLogsAtStart
|
||||||
@param {Object} self
|
@param {Object} self
|
||||||
@param {funciton}
|
@param {funciton}
|
||||||
*/
|
*/
|
||||||
var getLogsAtStart = function(self, callback){
|
var getLogsAtStart = function(self, callback){
|
||||||
// call getFilterLogs for the first watch callback start
|
// call getFilterLogs for the first watch callback start
|
||||||
|
@ -168,7 +168,7 @@ var Filter = function (requestManager, options, methods, formatter, callback) {
|
||||||
pollFilter(self);
|
pollFilter(self);
|
||||||
|
|
||||||
// start to watch immediately
|
// start to watch immediately
|
||||||
if(callback) {
|
if(typeof callback === 'function') {
|
||||||
return self.watch(callback);
|
return self.watch(callback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue