Merge pull request #2427 from bas-vk/pending-tx-console-format

console: use transaction output formatter for eth.pendingTransactions…
This commit is contained in:
Péter Szilágyi 2016-04-11 12:34:48 +03:00
commit a7161caedf

@ -250,7 +250,15 @@ web3._extend({
[
new web3._extend.Property({
name: 'pendingTransactions',
getter: 'eth_pendingTransactions'
getter: 'eth_pendingTransactions',
outputFormatter: function(txs) {
var formatted = [];
for (var i = 0; i < txs.length; i++) {
formatted.push(web3._extend.formatters.outputTransactionFormatter(txs[i]));
formatted[i].blockHash = null;
}
return formatted;
}
})
]
});