fix(@embark/transaction-logger): don't show logs for stray receipts

This commit is contained in:
Jonathan Rainville 2019-10-28 13:47:07 -04:00 committed by Michael Bradley
parent 6ee2ca2b8d
commit 395ae83f9c

View File

@ -131,6 +131,9 @@ class TransactionLogger {
// This is the normal case. If we don't get here, it's because we missed a TX
dataObject = Object.assign(dataObject, this.transactions[args.respData.result.transactionHash]);
delete this.transactions[args.respData.result.transactionHash]; // No longer needed
} else {
// Was not a eth_getTransactionReceipt in the context of a transaction
return;
}
} else {
dataObject = args.reqData.params[0];