Skip to content

Commit

Permalink
switch to asProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Mar 25, 2024
1 parent 2b9533d commit abecdb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/DAO/loaders/useFractalFreeze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const useFractalFreeze = ({

// @dev using freeze 'multisig' contract but these functions are the same for all freeze types
const freezeVotingContract =
baseContracts.freezeMultisigVotingMasterCopyContract.asSigner.attach(
baseContracts.freezeMultisigVotingMasterCopyContract.asProvider.attach(
freezeVotingContractAddress,
);
let userHasVotes: boolean = false;
Expand Down Expand Up @@ -106,7 +106,7 @@ export const useFractalFreeze = ({
const owners = await safeContract.getOwners();
userHasVotes = owners.find(owner => owner === account) !== undefined;
} else if (freezeVotingType === FreezeVotingType.ERC20) {
const freezeERC20VotingContract = freezeERC20VotingMasterCopyContract.asSigner.attach(
const freezeERC20VotingContract = freezeERC20VotingMasterCopyContract.asProvider.attach(
freezeVotingContractAddress,
);
const votesTokenContract = votesTokenMasterCopyContract!.asProvider.attach(
Expand Down Expand Up @@ -185,7 +185,7 @@ export const useFractalFreeze = ({

// @dev using freeze 'multisig' contract but these functions are the same for all freeze types
let votingRPC: MultisigFreezeVoting | ERC20FreezeVoting | ERC721FreezeVoting =
freezeMultisigVotingMasterCopyContract.asSigner.attach(freezeVotingContractAddress);
freezeMultisigVotingMasterCopyContract.asProvider.attach(freezeVotingContractAddress);

const listenerCallback: TypedListener<FreezeVoteCastEvent> = async (
voter: string,
Expand Down

0 comments on commit abecdb9

Please sign in to comment.