From 6d235b14c725b94f6bef70b9b6fff44deb1fecd4 Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Mon, 17 Jun 2024 11:39:20 +0200 Subject: [PATCH] Remove leftover `_eventAdapter` from `EdrProviderWrapper` Seems to be a leftover from #4747 and it looks to be unused now as we create a new instance of `EdrProviderEventAdapter` explicitly in `create()` and move it into lambda. Feel free to disregard if that's not true and/or we want to keep it. --- .../src/internal/hardhat-network/provider/provider.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts index 023abf35af..4c7c80dc20 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -182,7 +182,6 @@ export class EdrProviderWrapper private readonly _node: { _vm: MinimalEthereumJsVm; }, - private readonly _eventAdapter: EdrProviderEventAdapter, private readonly _vmTraceDecoder: VmTraceDecoder, private readonly _rawTraceCallbacks: RawTraceCallbacks, // The common configuration for EthereumJS VM is not used by EDR, but tests expect it as part of the provider. @@ -323,7 +322,6 @@ export class EdrProviderWrapper const wrapper = new EdrProviderWrapper( provider, minimalEthereumJsNode, - eventAdapter, vmTraceDecoder, rawTraceCallbacks, common,