Filter null transactions (not available on node)
This commit is contained in:
parent
0f987a2206
commit
d5373e26b8
@ -92,7 +92,9 @@ export default class Store {
|
|||||||
|
|
||||||
Promise
|
Promise
|
||||||
.all(txhashes.map((txhash) => this._api.eth.getTransactionByHash(txhash)))
|
.all(txhashes.map((txhash) => this._api.eth.getTransactionByHash(txhash)))
|
||||||
.then((transactions) => {
|
.then((_transactions) => {
|
||||||
|
const transactions = _transactions.filter((tx) => tx);
|
||||||
|
|
||||||
this.addTransactions(
|
this.addTransactions(
|
||||||
transactions.reduce((transactions, tx, index) => {
|
transactions.reduce((transactions, tx, index) => {
|
||||||
transactions[txhashes[index]] = tx;
|
transactions[txhashes[index]] = tx;
|
||||||
|
Loading…
Reference in New Issue
Block a user