Skip to content

Commit

Permalink
fix: pass current chain ID in uniqueContractGettersTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
therealemjy authored and gleiser-oliveira committed Dec 4, 2023
1 parent d648578 commit 4628a9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export const useGetPoolLensContract = (input?: UseGetPoolLensContractInput) => {
const { chainId: currentChainId } = useChainId();
const chainId = input?.chainId || currentChainId;
const { provider } = useProvider({ chainId: input?.chainId });
const { signer } = useSigner({ chainId: input?.chainId });
const { provider } = useProvider({ chainId });
const { signer } = useSigner({ chainId });
const signerOrProvider = input?.passSigner ? signer : provider;
return useMemo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const useGet{{contractName}}Contract = (input?: UseGet{{contractName}}Con
const { chainId: currentChainId } = useChainId();
const chainId = input?.chainId || currentChainId;

const { provider } = useProvider({ chainId: input?.chainId });
const { signer } = useSigner({ chainId: input?.chainId });
const { provider } = useProvider({ chainId });
const { signer } = useSigner({ chainId });
const signerOrProvider = input?.passSigner ? signer : provider;

return useMemo(
Expand Down

0 comments on commit 4628a9d

Please sign in to comment.