Skip to content

Commit

Permalink
run pretty/lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Mar 25, 2024
1 parent 5b40d56 commit 2b9533d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
11 changes: 8 additions & 3 deletions src/components/ui/menus/ManageDAO/ManageDAOMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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,
Expand Down Expand Up @@ -237,7 +242,7 @@ export function ManageDAOMenu({
handleNavigateToSettings,
getUserERC721VotingTokens,
baseContracts,
freezeVotingContractAddress
freezeVotingContractAddress,
]);

return (
Expand Down
8 changes: 6 additions & 2 deletions src/hooks/DAO/useCastFreezeVote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -42,7 +44,9 @@ const useCastFreezeVote = ({
);
} else {
const freezeVotingContract =
baseContracts.freezeMultisigVotingMasterCopyContract.asSigner.attach(freezeVotingContractAddress);
baseContracts.freezeMultisigVotingMasterCopyContract.asSigner.attach(
freezeVotingContractAddress,
);
return freezeVotingContract.castFreezeVote();
}
},
Expand Down

0 comments on commit 2b9533d

Please sign in to comment.