From fe70b95a335507351f86ea19617f0e5bd244d83c Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 27 Aug 2019 16:28:31 -0400 Subject: [PATCH] remove whisper module --- remix-simulator/src/methods/whisper.js | 15 --------------- remix-simulator/src/provider.js | 3 +-- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 remix-simulator/src/methods/whisper.js diff --git a/remix-simulator/src/methods/whisper.js b/remix-simulator/src/methods/whisper.js deleted file mode 100644 index bfd88f43e0..0000000000 --- a/remix-simulator/src/methods/whisper.js +++ /dev/null @@ -1,15 +0,0 @@ - -var Whisper = function () { -} - -Whisper.prototype.methods = function () { - return { - shh_version: this.shh_version.bind(this) - } -} - -Whisper.prototype.shh_version = function (payload, cb) { - cb(null, 5) -} - -module.exports = Whisper diff --git a/remix-simulator/src/provider.js b/remix-simulator/src/provider.js index 33fb403ab4..02675dbcff 100644 --- a/remix-simulator/src/provider.js +++ b/remix-simulator/src/provider.js @@ -10,7 +10,6 @@ const Filters = require('./methods/filters.js') const Misc = require('./methods/misc.js') const Net = require('./methods/net.js') const Transactions = require('./methods/transactions.js') -const Whisper = require('./methods/whisper.js') const generateBlock = require('./genesis.js') @@ -24,8 +23,8 @@ var Provider = function (options) { this.methods = merge(this.methods, (new Misc()).methods()) this.methods = merge(this.methods, (new Filters()).methods()) this.methods = merge(this.methods, (new Net()).methods()) - this.methods = merge(this.methods, (this.Transactions.methods())) this.methods = merge(this.methods, (new Whisper()).methods()) + this.methods = merge(this.methods, (new Transactions(this.Accounts.accounts)).methods()) generateBlock() }