From c52250e2035356f5929355ca65e1b760cff04998 Mon Sep 17 00:00:00 2001 From: Fabian Vogelsteller Date: Tue, 24 Mar 2015 09:42:09 +0100 Subject: [PATCH] add block uncle and block counts --- lib/web3/eth.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/web3/eth.js b/lib/web3/eth.js index 4cc0ea7..4c3343a 100644 --- a/lib/web3/eth.js +++ b/lib/web3/eth.js @@ -109,7 +109,7 @@ var getBlock = new Method({ var getUncle = new Method({ name: 'getUncle', call: uncleCall, - params: 2, + params: 3, inputFormatter: [utils.toHex, utils.toHex, function (val) { return !!val; }], outputFormatter: formatters.outputBlockFormatter, @@ -121,7 +121,7 @@ var getCompilers = new Method({ params: 0 }); -var getBlockTransactounCount = new Method({ +var getBlockTransactionCount = new Method({ name: 'getBlockTransactionCount', call: getBlockTransactionCountCall, params: 1, @@ -205,7 +205,7 @@ var methods = [ getBlock, getUncle, getCompilers, - getBlockTransactounCount, + getBlockTransactionCount, getBlockUncleCount, getTransaction, getTransactionFromBlock,