From abecdb9df54849240e06a75082da44241be829bc Mon Sep 17 00:00:00 2001 From: David Colon <38386583+Da-Colon@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:49:15 -0400 Subject: [PATCH] switch to asProvider --- src/hooks/DAO/loaders/useFractalFreeze.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hooks/DAO/loaders/useFractalFreeze.ts b/src/hooks/DAO/loaders/useFractalFreeze.ts index 0937f777fa..10f6abd90c 100644 --- a/src/hooks/DAO/loaders/useFractalFreeze.ts +++ b/src/hooks/DAO/loaders/useFractalFreeze.ts @@ -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; @@ -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( @@ -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 = async ( voter: string,