mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 03:28:07 +00:00
This commit is contained in:
parent
54e40bb4bb
commit
f310e7ccdc
@ -150,7 +150,9 @@ var Filter = function (requestManager, options, methods, formatter, callback, fi
|
||||
self.callbacks.forEach(function(cb){
|
||||
cb(error);
|
||||
});
|
||||
filterCreationErrorCallback(error);
|
||||
if (typeof filterCreationErrorCallback === 'function') {
|
||||
filterCreationErrorCallback(error);
|
||||
}
|
||||
} else {
|
||||
self.filterId = id;
|
||||
|
||||
|
@ -335,8 +335,8 @@ Eth.prototype.contract = function (abi) {
|
||||
return factory;
|
||||
};
|
||||
|
||||
Eth.prototype.filter = function (fil, callback) {
|
||||
return new Filter(this._requestManager, fil, watches.eth(), formatters.outputLogFormatter, callback);
|
||||
Eth.prototype.filter = function (fil, callback, filterCreationErrorCallback) {
|
||||
return new Filter(this._requestManager, fil, watches.eth(), formatters.outputLogFormatter, callback, filterCreationErrorCallback);
|
||||
};
|
||||
|
||||
Eth.prototype.namereg = function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user