From 395ae83f9cb41e238bc49c98a4f6435d45005f9b Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Mon, 28 Oct 2019 13:47:07 -0400 Subject: [PATCH] fix(@embark/transaction-logger): don't show logs for stray receipts --- packages/plugins/transaction-logger/src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/plugins/transaction-logger/src/index.js b/packages/plugins/transaction-logger/src/index.js index d5eaf4587..ffe8a183c 100644 --- a/packages/plugins/transaction-logger/src/index.js +++ b/packages/plugins/transaction-logger/src/index.js @@ -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];