Skip to content

Commit

Permalink
Remove baseContracts?.linearVotingERC721MasterCopyContract from useMa…
Browse files Browse the repository at this point in the history
…sterCopy
  • Loading branch information
adamgall committed May 7, 2024
1 parent b4643b4 commit d8182d3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/hooks/utils/useMasterCopy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function useMasterCopy() {
const { getValue, setValue } = useLocalStorage();
const { baseContracts } = useFractal();
const {
contracts: { zodiacModuleProxyFactory, linearVotingMasterCopy },
contracts: { zodiacModuleProxyFactory, linearVotingMasterCopy, linearVotingERC721MasterCopy },
} = useNetworkConfig();
const publicClient = usePublicClient();

Expand All @@ -20,9 +20,8 @@ export function useMasterCopy() {
[linearVotingMasterCopy],
);
const isOzLinearVotingERC721 = useCallback(
(masterCopyAddress: Address) =>
masterCopyAddress === baseContracts?.linearVotingERC721MasterCopyContract.asProvider.address,
[baseContracts],
(masterCopyAddress: Address) => masterCopyAddress === linearVotingERC721MasterCopy,
[linearVotingERC721MasterCopy],
);
const isMultisigFreezeGuard = useCallback(
(masterCopyAddress: Address) =>
Expand Down

0 comments on commit d8182d3

Please sign in to comment.