Skip to content

Commit

Permalink
Merge pull request #1656 from decentdao/remove-safeFactoryContract-fr…
Browse files Browse the repository at this point in the history
…om-useSafeContracts

Remove safeFactoryContract from useSafeContracts
  • Loading branch information
adamgall authored May 7, 2024
2 parents b05a7d0 + 11edff4 commit 39b47f8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/hooks/safe/useSafeContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
ERC20FreezeVoting__factory,
MultisigFreezeGuard__factory,
MultisigFreezeVoting__factory,
GnosisSafeProxyFactory__factory,
ModuleProxyFactory__factory,
LinearERC20Voting__factory,
Azorius__factory,
Expand All @@ -26,7 +25,6 @@ export default function useSafeContracts() {
const {
contracts: {
safe,
safeFactory,
zodiacModuleProxyFactory,
linearVotingMasterCopy,
multisend,
Expand All @@ -51,11 +49,6 @@ export default function useSafeContracts() {
asProvider: MultiSend__factory.connect(multisend, provider),
};

const safeFactoryContract = {
asSigner: GnosisSafeProxyFactory__factory.connect(safeFactory, signerOrProvider),
asProvider: GnosisSafeProxyFactory__factory.connect(safeFactory, provider),
};

const fractalAzoriusMasterCopyContract = {
asSigner: Azorius__factory.connect(fractalAzoriusMasterCopy, signerOrProvider),
asProvider: Azorius__factory.connect(fractalAzoriusMasterCopy, provider),
Expand Down Expand Up @@ -123,7 +116,6 @@ export default function useSafeContracts() {

return {
multiSendContract,
safeFactoryContract,
fractalAzoriusMasterCopyContract,
linearVotingMasterCopyContract,
safeSingletonContract,
Expand All @@ -138,7 +130,6 @@ export default function useSafeContracts() {
linearVotingERC721MasterCopyContract,
};
}, [
safeFactory,
safe,
zodiacModuleProxyFactory,
linearVotingMasterCopy,
Expand Down

0 comments on commit 39b47f8

Please sign in to comment.