Merge pull request #3698 from ethcore/jg-null-transaction

Filter null transactions for display (not available on node)
This commit is contained in:
Gav Wood 2016-12-01 19:40:16 -08:00 committed by GitHub
commit 21a76c22fc

View File

@ -92,7 +92,9 @@ export default class Store {
Promise
.all(txhashes.map((txhash) => this._api.eth.getTransactionByHash(txhash)))
.then((transactions) => {
.then((_transactions) => {
const transactions = _transactions.filter((tx) => tx);
this.addTransactions(
transactions.reduce((transactions, tx, index) => {
transactions[txhashes[index]] = tx;