mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-24 12:08:22 +00:00
Merge pull request #179 from ethereum/latest_pending
latest and pending as possible blockNumber arg everywhere
This commit is contained in:
commit
99e89a14de
@ -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
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user