diff --git a/src/clients/InventoryClient.ts b/src/clients/InventoryClient.ts index 0f6bedafd..ffca512bc 100644 --- a/src/clients/InventoryClient.ts +++ b/src/clients/InventoryClient.ts @@ -634,6 +634,11 @@ export class InventoryClient { } async wrapL2EthIfAboveThreshold(): Promise { + // If inventoryConfig is defined, there will be a default wrapEtherTarget and wrapEtherThreshold + // set by RelayerConfig.ts + if (!this?.inventoryConfig) { + return; + } this.log("Checking ETH->WETH Wrap status"); await this.adapterManager.wrapEthIfAboveThreshold(this.inventoryConfig, this.simMode); }