fix bindings

pull/3094/head
Iuri Matias 7 years ago
parent 95d9a533ab
commit b3d1f076fe
  1. 3
      remix-simulator/src/methods/blocks.js
  2. 2
      remix-simulator/src/methods/misc.js
  3. 3
      remix-simulator/src/provider.js

@ -4,7 +4,8 @@ var Blocks = function() {
Blocks.prototype.methods = function () { Blocks.prototype.methods = function () {
return { return {
eth_getBlockByNumber: this.eth_getBlockByNumber.bind(this) eth_getBlockByNumber: this.eth_getBlockByNumber.bind(this),
eth_gasPrice: this.eth_gasPrice.bind(this)
} }
} }

@ -4,7 +4,7 @@ var Misc = function() {
Misc.prototype.methods = function () { Misc.prototype.methods = function () {
return { return {
web3_clientVersion: 'web3_clientVersion' web3_clientVersion: this.web3_clientVersion.bind(this)
} }
} }

@ -25,8 +25,7 @@ var Provider = function () {
Provider.prototype.sendAsync = function (payload, callback) { Provider.prototype.sendAsync = function (payload, callback) {
const self = this const self = this
log.dir('payload method is ') log.info('payload method is ', payload.method)
log.dir(payload.method)
let method = this.methods[payload.method] let method = this.methods[payload.method]
if (method) { if (method) {

Loading…
Cancel
Save