Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 326e42f

Browse files
nividafrozeman
authored andcommitted
clearSubscriptions fixed (#1886)
1 parent 3649dba commit 326e42f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/web3-shh/src/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,8 @@ var Shh = function Shh() {
4242
_this.net.setProvider.apply(_this, arguments);
4343
};
4444

45-
this.clearSubscriptions = _this._requestManager.clearSubscriptions;
46-
4745
this.net = new Net(this.currentProvider);
4846

49-
5047
[
5148
new Subscriptions({
5249
name: 'subscribe',
@@ -180,6 +177,10 @@ var Shh = function Shh() {
180177
});
181178
};
182179

180+
Shh.prototype.clearSubscriptions = function () {
181+
this._requestManager.clearSubscriptions();
182+
};
183+
183184
core.addProviders(Shh);
184185

185186

0 commit comments

Comments
 (0)