From dbf3ff05a42c2d9cbb9b5c8a30ee50b852e2dc3a Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Wed, 22 Apr 2015 18:16:40 +0200 Subject: [PATCH] latest and pending as possible blockNumber arg everywhere --- 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 87a3a4c..625f5c0 100644 --- a/lib/web3/eth.js +++ b/lib/web3/eth.js @@ -102,7 +102,7 @@ var getBlock = new Method({ name: 'getBlock', call: blockCall, params: 2, - inputFormatter: [utils.toHex, function (val) { return !!val; }], + inputFormatter: [formatters.inputBlockNumberFormatter, function (val) { return !!val; }], outputFormatter: formatters.outputBlockFormatter }); @@ -110,7 +110,7 @@ var getUncle = new Method({ name: 'getUncle', call: uncleCall, params: 2, - inputFormatter: [utils.toHex, utils.toHex], + inputFormatter: [formatters.inputBlockNumberFormatter, utils.toHex], outputFormatter: formatters.outputBlockFormatter, }); @@ -148,7 +148,7 @@ var getTransactionFromBlock = new Method({ name: 'getTransactionFromBlock', call: transactionFromBlockCall, params: 2, - inputFormatter: [utils.toHex, utils.toHex], + inputFormatter: [formatters.inputBlockNumberFormatter, utils.toHex], outputFormatter: formatters.outputTransactionFormatter });