diff --git a/src/pages/HomePage/HomePage.tsx b/src/pages/HomePage/HomePage.tsx index 5c709143..16ca80d7 100644 --- a/src/pages/HomePage/HomePage.tsx +++ b/src/pages/HomePage/HomePage.tsx @@ -12,9 +12,6 @@ import NavigationFooter from "../../components/NavigationFooter/NavigationFooter import HomeHeader from "../../components/HomeHeader/HomeHeader"; import HomeBackground from "../../assets/welcome-glass-effect.png"; import HomeLoading from "../../components/HomeLoading/HomeLoading"; -import { SwarmCommentSystem } from "solarpunk-comment-system-ui"; -import { ethers } from "ethers"; -import { Signer, Utils } from "@ethersphere/bee-js"; interface HomePageProps { isLoaded?: boolean; @@ -90,23 +87,6 @@ const HomePage: React.FC = ({ isLoaded }) => { return () => clearTimeout(timer); }, []); - // Create Wallet - this will be created outside the component - let wallet: ethers.Wallet | null; - const savedKey = localStorage.getItem("walletPrivKey"); - if (savedKey) { - wallet = new ethers.Wallet(savedKey) - } else { - const tempPriv = ethers.Wallet.createRandom().privateKey; - wallet = new ethers.Wallet(tempPriv); - localStorage.setItem("walletPrivKey", wallet.privateKey) - } - - const signer: Signer = { - address: Utils.hexToBytes(wallet.address.slice(2)), - sign: async (data: any) => { - return await wallet.signMessage(data); - }, - }; return (
@@ -120,14 +100,6 @@ const HomePage: React.FC = ({ isLoaded }) => { ) : (
- -