forked from cerc-io/plugeth
console: use transaction output formatter for eth.pendingTransactions output
This commit is contained in:
parent
7e02105672
commit
18490d833c
@ -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;
|
||||
}
|
||||
})
|
||||
]
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user