From 471be58193916914ea3a0823ee80f0623bdc2823 Mon Sep 17 00:00:00 2001 From: mariacarmina Date: Mon, 2 Dec 2024 15:06:42 +0200 Subject: [PATCH 1/3] Add back check for access list factory. --- 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 4379a9aa0..5fc86b321 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 ('accessListFactory' in contractAddressesConfig && config.sdk === 'oasis') { + config.accessListFactory = contractAddressesConfig.accessListFactory + } config = { ...config, ...contractAddressesConfig } From 65ff925883e860b19e27c3074980ce4fafeb39b0 Mon Sep 17 00:00:00 2001 From: mariacarmina Date: Wed, 4 Dec 2024 14:45:31 +0200 Subject: [PATCH 2/3] Remove second condition. --- src/config/ConfigHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/ConfigHelper.ts b/src/config/ConfigHelper.ts index 5fc86b321..fb8cb1002 100644 --- a/src/config/ConfigHelper.ts +++ b/src/config/ConfigHelper.ts @@ -338,7 +338,7 @@ export class ConfigHelper { config.sdk = 'evm' } } - if ('accessListFactory' in contractAddressesConfig && config.sdk === 'oasis') { + if ('accessListFactory' in contractAddressesConfig) { config.accessListFactory = contractAddressesConfig.accessListFactory } From f36d986c1dcd3a8235db9d43d3d4cc2ceeedbc82 Mon Sep 17 00:00:00 2001 From: mariacarmina Date: Tue, 17 Dec 2024 16:25:12 +0200 Subject: [PATCH 3/3] fix condition. --- src/config/ConfigHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/ConfigHelper.ts b/src/config/ConfigHelper.ts index fb8cb1002..7595e7356 100644 --- a/src/config/ConfigHelper.ts +++ b/src/config/ConfigHelper.ts @@ -338,7 +338,7 @@ export class ConfigHelper { config.sdk = 'evm' } } - if ('accessListFactory' in contractAddressesConfig) { + if (contractAddressesConfig && 'accessListFactory' in contractAddressesConfig) { config.accessListFactory = contractAddressesConfig.accessListFactory }