From 4b926e71b14cc43b93fa07c94d993bc82ed27f2e Mon Sep 17 00:00:00 2001 From: Jan-Felix Date: Wed, 28 Feb 2024 13:03:23 +0100 Subject: [PATCH] fix for module detection --- extension/src/connections/useZodiacModules.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extension/src/connections/useZodiacModules.ts b/extension/src/connections/useZodiacModules.ts index b4565c54..e9155b35 100644 --- a/extension/src/connections/useZodiacModules.ts +++ b/extension/src/connections/useZodiacModules.ts @@ -94,9 +94,6 @@ async function fetchModules( const implementationAddress = mastercopyAddress || moduleAddress - // 'roles' is the old name for roles_v1 is still configured as an alias in the zodiac package for backwards compatibility - if (type === KnownContracts.ROLES) type = KnownContracts.ROLES_V1 - if (!type) { // Not a proxy to one of our master copies. It might be a custom deployment. // We try to detect selectors from byte code and match them against the ABIs of known Zodiac modules. @@ -112,6 +109,9 @@ async function fetchModules( } } + // 'roles' is the old name for roles_v1 is still configured as an alias in the zodiac package for backwards compatibility + if (type === KnownContracts.ROLES) type = KnownContracts.ROLES_V1 + if (!type || !SUPPORTED_MODULES.includes(type)) { return undefined }