Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ yarn install
cd packages/hardhat
```

4. Start the Hardhat local blockchain:
4. Start the Hardhat local hardhat blockchain

```
yarn hardhat node
yarn hardhat node --network hardhat
```

5. Open other terminal and deploy the contract on hardhat chain
5. Open other terminal and deploy the contract on local hardhat blockchain

```
yarn hardhat deploy --network hardhat
Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import "~~/styles/globals.css";
import { getMetadata } from "~~/utils/scaffold-eth/getMetadata";

export const metadata = getMetadata({
title: "Scaffold-ETH 2 App",
description: "Built with 🏗 Scaffold-ETH 2",
title: "Expense Splitter",
description: "Built on Ethereum",
});

const ScaffoldEthApp = ({ children }: { children: React.ReactNode }) => {
Expand Down
23 changes: 14 additions & 9 deletions packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
"use client";

import React, { useCallback, useRef, useState } from "react";
import Image from "next/image";
// import Image from "next/image";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { hardhat } from "viem/chains";
import { Bars3Icon, BugAntIcon } from "@heroicons/react/24/outline";
// import { Bars3Icon, BugAntIcon } from "@heroicons/react/24/outline";
import { Bars3Icon } from "@heroicons/react/24/outline";
import { FaucetButton, RainbowKitCustomConnectButton } from "~~/components/scaffold-eth";
import { useOutsideClick, useTargetNetwork } from "~~/hooks/scaffold-eth";

Expand All @@ -20,10 +21,14 @@ export const menuLinks: HeaderMenuLink[] = [
label: "Home",
href: "/",
},
// {
// label: "Debug Contracts",
// href: "/debug",
// icon: <BugAntIcon className="h-4 w-4" />,
// },
{
label: "Debug Contracts",
href: "/debug",
icon: <BugAntIcon className="h-4 w-4" />,
label: "Expense Splitter",
href: "/expensesplitter",
},
];

Expand Down Expand Up @@ -93,12 +98,12 @@ export const Header = () => {
)}
</div>
<Link href="/" passHref className="hidden lg:flex items-center gap-2 ml-4 mr-6 shrink-0">
<div className="flex relative w-10 h-10">
{/* <div className="flex relative w-10 h-10">
<Image alt="SE2 logo" className="cursor-pointer" fill src="/logo.svg" />
</div>
</div> */}
<div className="flex flex-col">
<span className="font-bold leading-tight">Scaffold-ETH</span>
<span className="text-xs">Ethereum dev stack</span>
<span className="font-bold leading-tight">Expense Splitter</span>
<span className="text-xs">on Ethereum</span>
</div>
</Link>
<ul className="hidden lg:flex lg:flex-nowrap menu menu-horizontal px-1 gap-2">
Expand Down