console: use transaction output formatter for eth.pendingTransactions output

This commit is contained in:
Bas van Kervel 2016-04-06 10:56:37 +02:00
parent 7e02105672
commit 18490d833c
1 changed files with 9 additions and 1 deletions

View File

@ -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;
}
})
]
});