diff --git a/resources/js/provider.js b/resources/js/provider.js index 73aa3620bf..1afef93fbe 100644 --- a/resources/js/provider.js +++ b/resources/js/provider.js @@ -179,6 +179,10 @@ this._events[name] = this._events[name].filter(filterListeners); } + EthereumProvider.prototype.removeAllListeners = function () { + this._events = {}; + } + EthereumProvider.prototype.emit = function (name, data) { if (!this._events[name]) { return