add block uncle and block counts

This commit is contained in:
Fabian Vogelsteller 2015-03-24 09:42:09 +01:00
parent b3b95c5f98
commit c52250e203
1 changed files with 3 additions and 3 deletions

View File

@ -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,