Commit 842f0dec authored by Iuri Matias's avatar Iuri Matias

fix bindings

parent 5dfd594a
......@@ -4,7 +4,8 @@ var Blocks = function() {
Blocks.prototype.methods = function () {
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 () {
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) {
const self = this
log.dir('payload method is ')
log.dir(payload.method)
log.info('payload method is ', payload.method)
let method = this.methods[payload.method]
if (method) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment