Skip to content

Commit

Permalink
clearSubscriptions fixed (web3#1886)
Browse files Browse the repository at this point in the history
  • Loading branch information
nivida authored and nachomazzara committed Jun 4, 2020
1 parent 598c742 commit b328c62
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/web3-shh/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@ var Shh = function Shh() {
_this.net.setProvider.apply(_this, arguments);
};

this.clearSubscriptions = _this._requestManager.clearSubscriptions;

this.net = new Net(this.currentProvider);


[
new Subscriptions({
name: 'subscribe',
Expand Down Expand Up @@ -180,6 +177,10 @@ var Shh = function Shh() {
});
};

Shh.prototype.clearSubscriptions = function () {
this._requestManager.clearSubscriptions();
};

core.addProviders(Shh);


Expand Down

0 comments on commit b328c62

Please sign in to comment.