diff --git a/src/components/ui/menus/ManageDAO/ManageDAOMenu.tsx b/src/components/ui/menus/ManageDAO/ManageDAOMenu.tsx index 50801f833c..e8c5177dd1 100644 --- a/src/components/ui/menus/ManageDAO/ManageDAOMenu.tsx +++ b/src/components/ui/menus/ManageDAO/ManageDAOMenu.tsx @@ -140,7 +140,10 @@ export function ManageDAOMenu({ const freezeOption = { optionKey: 'optionInitiateFreeze', onClick: () => { - const freezeVotingContract = baseContracts!.freezeMultisigVotingMasterCopyContract.asSigner.attach(freezeVotingContractAddress!); + const freezeVotingContract = + baseContracts!.freezeMultisigVotingMasterCopyContract.asSigner.attach( + freezeVotingContractAddress!, + ); const freezeVotingType = guardContracts!.freezeVotingType; if (freezeVotingContract) { if ( @@ -151,7 +154,9 @@ export function ManageDAOMenu({ } else if (freezeVotingType === FreezeVotingType.ERC721) { getUserERC721VotingTokens(undefined, parentAddress).then(tokensInfo => { const freezeERC721VotingContract = - baseContracts!.freezeERC721VotingMasterCopyContract.asSigner.attach(freezeVotingContractAddress!); + baseContracts!.freezeERC721VotingMasterCopyContract.asSigner.attach( + freezeVotingContractAddress!, + ); return freezeERC721VotingContract!['castFreezeVote(address[],uint256[])']( tokensInfo.totalVotingTokenAddresses, tokensInfo.totalVotingTokenIds, @@ -237,7 +242,7 @@ export function ManageDAOMenu({ handleNavigateToSettings, getUserERC721VotingTokens, baseContracts, - freezeVotingContractAddress + freezeVotingContractAddress, ]); return ( diff --git a/src/hooks/DAO/useCastFreezeVote.ts b/src/hooks/DAO/useCastFreezeVote.ts index 058b407cb3..44658cdfe1 100644 --- a/src/hooks/DAO/useCastFreezeVote.ts +++ b/src/hooks/DAO/useCastFreezeVote.ts @@ -33,7 +33,9 @@ const useCastFreezeVote = ({ contractFn: () => { if (freezeVotingType === FreezeVotingType.ERC721) { const freezeERC721VotingContract = - baseContracts.freezeERC721VotingMasterCopyContract.asSigner.attach(freezeVotingContractAddress); + baseContracts.freezeERC721VotingMasterCopyContract.asSigner.attach( + freezeVotingContractAddress, + ); return getUserERC721VotingTokens(undefined, parentAddress).then(tokensInfo => freezeERC721VotingContract['castFreezeVote(address[],uint256[])']( tokensInfo.totalVotingTokenAddresses, @@ -42,7 +44,9 @@ const useCastFreezeVote = ({ ); } else { const freezeVotingContract = - baseContracts.freezeMultisigVotingMasterCopyContract.asSigner.attach(freezeVotingContractAddress); + baseContracts.freezeMultisigVotingMasterCopyContract.asSigner.attach( + freezeVotingContractAddress, + ); return freezeVotingContract.castFreezeVote(); } },