good morning!!!!

Skip to content
Snippets Groups Projects
Commit a7161cae authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

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

console: use transaction output formatter for eth.pendingTransactions…
parents 4b2492b6 18490d83
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
})
]
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment