mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 11:38:12 +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){
|
self.callbacks.forEach(function(cb){
|
||||||
cb(error);
|
cb(error);
|
||||||
});
|
});
|
||||||
filterCreationErrorCallback(error);
|
if (typeof filterCreationErrorCallback === 'function') {
|
||||||
|
filterCreationErrorCallback(error);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
self.filterId = id;
|
self.filterId = id;
|
||||||
|
|
||||||
|
@ -335,8 +335,8 @@ Eth.prototype.contract = function (abi) {
|
|||||||
return factory;
|
return factory;
|
||||||
};
|
};
|
||||||
|
|
||||||
Eth.prototype.filter = function (fil, callback) {
|
Eth.prototype.filter = function (fil, callback, filterCreationErrorCallback) {
|
||||||
return new Filter(this._requestManager, fil, watches.eth(), formatters.outputLogFormatter, callback);
|
return new Filter(this._requestManager, fil, watches.eth(), formatters.outputLogFormatter, callback, filterCreationErrorCallback);
|
||||||
};
|
};
|
||||||
|
|
||||||
Eth.prototype.namereg = function () {
|
Eth.prototype.namereg = function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user