Skip to content

Commit

Permalink
Merge pull request #88 from gnosisguild/fix-module-detect
Browse files Browse the repository at this point in the history
fix for module detection
  • Loading branch information
jfschwarz authored Feb 28, 2024
2 parents 3f5cefb + 4b926e7 commit 5aa349d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extension/src/connections/useZodiacModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
}
Expand Down

0 comments on commit 5aa349d

Please sign in to comment.