Merge pull request #179 from ethereum/latest_pending

latest and pending as possible blockNumber arg everywhere
This commit is contained in:
Fabian Vogelsteller 2015-04-23 09:46:10 +02:00
commit 99e89a14de

View File

@ -102,7 +102,7 @@ var getBlock = new Method({
name: 'getBlock', name: 'getBlock',
call: blockCall, call: blockCall,
params: 2, params: 2,
inputFormatter: [utils.toHex, function (val) { return !!val; }], inputFormatter: [formatters.inputBlockNumberFormatter, function (val) { return !!val; }],
outputFormatter: formatters.outputBlockFormatter outputFormatter: formatters.outputBlockFormatter
}); });
@ -110,7 +110,7 @@ var getUncle = new Method({
name: 'getUncle', name: 'getUncle',
call: uncleCall, call: uncleCall,
params: 2, params: 2,
inputFormatter: [utils.toHex, utils.toHex], inputFormatter: [formatters.inputBlockNumberFormatter, utils.toHex],
outputFormatter: formatters.outputBlockFormatter, outputFormatter: formatters.outputBlockFormatter,
}); });
@ -148,7 +148,7 @@ var getTransactionFromBlock = new Method({
name: 'getTransactionFromBlock', name: 'getTransactionFromBlock',
call: transactionFromBlockCall, call: transactionFromBlockCall,
params: 2, params: 2,
inputFormatter: [utils.toHex, utils.toHex], inputFormatter: [formatters.inputBlockNumberFormatter, utils.toHex],
outputFormatter: formatters.outputTransactionFormatter outputFormatter: formatters.outputTransactionFormatter
}); });