diff --git a/src/modules/common-ui/components/Connect/Connect.tsx b/src/modules/common-ui/components/Connect/Connect.tsx index fc787b1..3669bdd 100644 --- a/src/modules/common-ui/components/Connect/Connect.tsx +++ b/src/modules/common-ui/components/Connect/Connect.tsx @@ -1,5 +1,4 @@ import { BrowserProvider, getAddress } from 'ethers'; -import { Eip1193Provider } from 'ethers'; import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { createFhevmInstance } from '../../../../fhevmjs'; @@ -97,7 +96,7 @@ export const Connect: React.FC<{ ], }); } - await refreshNetwork(); + await refreshNetwork(account); }, []); const child = useMemo(() => { diff --git a/src/modules/game/components/Game/Game.tsx b/src/modules/game/components/Game/Game.tsx index ffcdef6..0a7aaa9 100644 --- a/src/modules/game/components/Game/Game.tsx +++ b/src/modules/game/components/Game/Game.tsx @@ -1,5 +1,5 @@ import { BrowserProvider, Contract, getAddress } from 'ethers'; -import { useCallback, useEffect, useState } from 'react'; +import { useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; import { abi } from '../../../../abi/cipherbomb.json';