remove whisper module

pull/7/head
Iuri Matias 5 years ago
parent 0b34718876
commit fe70b95a33
  1. 15
      remix-simulator/src/methods/whisper.js
  2. 3
      remix-simulator/src/provider.js

@ -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

@ -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()
}

Loading…
Cancel
Save