mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 04:26:37 +00:00
console: use transaction output formatter for eth.pendingTransactions output
This commit is contained in:
parent
7e02105672
commit
18490d833c
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue