good morning!!!!

Skip to content
Snippets Groups Projects
Commit 18490d83 authored by Bas van Kervel's avatar Bas van Kervel
Browse files

console: use transaction output formatter for eth.pendingTransactions output

parent 7e021056
No related branches found
No related tags found
No related merge requests found
...@@ -250,7 +250,15 @@ web3._extend({ ...@@ -250,7 +250,15 @@ web3._extend({
[ [
new web3._extend.Property({ new web3._extend.Property({
name: 'pendingTransactions', 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