Skip to content

Commit

Permalink
Merge fad691b into 6862c59
Browse files Browse the repository at this point in the history
  • Loading branch information
alonavns committed Jul 16, 2020
2 parents 6862c59 + fad691b commit 4aa5199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-core-requestmanager/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ RequestManager.prototype.setProvider = function (provider, net) {
result = result || deprecatedResult; // this is for possible old providers, which may had the error first handler

// check for result.method, to prevent old providers errors to pass as result
if (result.method && _this.subscriptions.has(result.params.subscription)) {
if (result.method && result.params && _this.subscriptions.has(result.params.subscription)) {
_this.subscriptions.get(result.params.subscription).callback(null, result.params.result);
}
});
Expand Down

0 comments on commit 4aa5199

Please sign in to comment.