From ebd7359319cb1b37003e84beb1b8a58322884cd9 Mon Sep 17 00:00:00 2001 From: Maria Carmina <50501033+mariacarmina@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:43:40 +0200 Subject: [PATCH] Add back check for access list factory. (#1889) * Add back check for access list factory. * Remove second condition. * fix condition. --- src/config/ConfigHelper.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config/ConfigHelper.ts b/src/config/ConfigHelper.ts index 647633a9b..aa2f0323e 100644 --- a/src/config/ConfigHelper.ts +++ b/src/config/ConfigHelper.ts @@ -338,8 +338,9 @@ export class ConfigHelper { config.sdk = 'evm' } } - - config.accessListFactory = contractAddressesConfig.accessListFactory + if (contractAddressesConfig && 'accessListFactory' in contractAddressesConfig) { + config.accessListFactory = contractAddressesConfig.accessListFactory + } config = { ...config, ...contractAddressesConfig }