Skip to content

Commit

Permalink
Fix object delcarations to be of types, not as types, and fix some bu…
Browse files Browse the repository at this point in the history
…gs in the process
  • Loading branch information
adamgall committed May 7, 2024
1 parent 725f375 commit e616409
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/hooks/DAO/useBuildDAOTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const useBuildDAOTx = () => {
};
}

const buildrerBaseContracts = {
const buildrerBaseContracts: BaseContracts = {
fractalModuleMasterCopyContract: fractalModuleMasterCopyContract.asSigner,
fractalRegistryContract: fractalRegistryContract.asSigner,
safeFactoryContract: safeFactoryContract.asSigner,
Expand All @@ -103,7 +103,7 @@ const useBuildDAOTx = () => {
freezeERC721VotingMasterCopyContract: freezeERC721VotingMasterCopyContract.asSigner,
freezeMultisigVotingMasterCopyContract: freezeMultisigVotingMasterCopyContract.asSigner,
zodiacModuleProxyFactoryContract: zodiacModuleProxyFactoryContract.asSigner,
} as BaseContracts;
};

const txBuilderFactory = new TxBuilderFactory(
signerOrProvider,
Expand Down
12 changes: 8 additions & 4 deletions src/hooks/DAO/useDeployAzorius.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const useDeployAzorius = () => {
safeFactoryContract,
safeSingletonContract,
linearVotingMasterCopyContract,
linearVotingERC721MasterCopyContract,
fractalAzoriusMasterCopyContract,
zodiacModuleProxyFactoryContract,
fractalRegistryContract,
Expand All @@ -62,28 +63,31 @@ const useDeployAzorius = () => {
azoriusFreezeGuardMasterCopyContract,
freezeMultisigVotingMasterCopyContract,
freezeERC20VotingMasterCopyContract,
freezeERC721VotingMasterCopyContract,
claimingMasterCopyContract,
} = baseContracts;
let azoriusContracts;
let azoriusContracts: AzoriusContracts;

azoriusContracts = {
fractalAzoriusMasterCopyContract: fractalAzoriusMasterCopyContract.asProvider,
linearVotingMasterCopyContract: linearVotingMasterCopyContract.asProvider,
linearVotingERC721MasterCopyContract: linearVotingERC721MasterCopyContract.asProvider,
azoriusFreezeGuardMasterCopyContract: azoriusFreezeGuardMasterCopyContract.asProvider,
claimingMasterCopyContract: claimingMasterCopyContract.asProvider,
} as AzoriusContracts;
};

const builderBaseContracts = {
const builderBaseContracts: BaseContracts = {
fractalModuleMasterCopyContract: fractalModuleMasterCopyContract.asProvider,
fractalRegistryContract: fractalRegistryContract.asProvider,
safeFactoryContract: safeFactoryContract.asProvider,
safeSingletonContract: safeSingletonContract.asProvider,
multisigFreezeGuardMasterCopyContract: multisigFreezeGuardMasterCopyContract.asProvider,
multiSendContract: multiSendContract.asProvider,
freezeERC20VotingMasterCopyContract: freezeERC20VotingMasterCopyContract.asProvider,
freezeERC721VotingMasterCopyContract: freezeERC721VotingMasterCopyContract.asProvider,
freezeMultisigVotingMasterCopyContract: freezeMultisigVotingMasterCopyContract.asProvider,
zodiacModuleProxyFactoryContract: zodiacModuleProxyFactoryContract.asProvider,
} as BaseContracts;
};

const txBuilderFactory = new TxBuilderFactory(
signerOrProvider,
Expand Down

0 comments on commit e616409

Please sign in to comment.