提交 a7161cae 编写于 作者: P Péter Szilágyi

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

console: use transaction output formatter for eth.pendingTransactions…
...@@ -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;
}
}) })
] ]
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册