mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-24 20:18:18 +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',
|
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
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user