Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Clean files #246

Merged
merged 6 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
11 changes: 1 addition & 10 deletions packages/nextjs/app/debug/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,7 @@ const Debug: NextPage = () => {
return (
<>
<DebugContracts />
{/* <div className="text-center mt-8 bg-secondary p-10">
<h1 className="text-4xl my-0">Debug Contracts</h1>
<p className="text-neutral">
You can debug & interact with your deployed contracts here.
<br /> Check{" "}
<code className="italic bg-base-300 text-base font-bold [word-spacing:-0.5rem] px-1">
packages / nextjs / app / debug / page.tsx
</code>{" "}
</p>
</div> */}
{}
metalboyrick marked this conversation as resolved.
Show resolved Hide resolved
</>
);
};
Expand Down
27 changes: 1 addition & 26 deletions packages/nextjs/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,32 +66,7 @@ export const Footer = () => {
Fork me
</a>
</div>
<span>·</span>
{/* <div className="flex justify-center items-center gap-2">
<p className="m-0 text-center">
Built with <HeartIcon className="inline-block h-4 w-4" /> by
</p>
<a
className="flex justify-center items-center gap-1"
href="https://quantum3labs.com/"
target="_blank"
rel="noreferrer"
>
<BuidlGuidlLogo className="w-3 h-5 pb-1" />
<span className="link">Q3 Labs</span>
</a>
<p className="m-0 text-center">at</p>
<a
className="flex justify-center items-center gap-1"
href="https://buidlguidl.com/"
target="_blank"
rel="noreferrer"
>
<BuidlGuidlLogo className="w-3 h-5 pb-1" />
<span className="link">BuidlGuidl</span>
</a>
</div>
<span>·</span> */}

<div className="text-center">
<a
href="https://t.me/+wO3PtlRAreo4MDI9"
Expand Down
7 changes: 0 additions & 7 deletions packages/nextjs/components/SwitchTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ export const SwitchTheme = ({ className }: { className?: string }) => {
<div
className={`flex space-x-2 h-5 items-center justify-center text-sm border-l border-neutral px-4 ${className}`}
>
{/* <input
id="theme-toggle"
type="checkbox"
className="toggle toggle-primary bg-primary hover:bg-primary border-primary"
onChange={handleToggle}
checked={isDarkMode}
/> */}
{
<label
htmlFor="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/scaffold-stark/Faucet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const Faucet = () => {
useEffect(() => {
const checkChain = async () => {
try {
const providerInfo = await publicClient.getBlock();
const providerInfo = await publicClient.getBlockWithTxHashes();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems to me that this will be a heavier request, which we are not supposed to do when calling checkChain() only, why do we need txHashes ?

} catch (error) {
console.error("⚡️ ~ file: Faucet.tsx:checkChain ~ error", error);
notification.error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const FaucetSepolia = () => {
useEffect(() => {
const checkChain = async () => {
try {
const providerInfo = await publicClient.getBlock();
const providerInfo = await publicClient.getBlockWithTxHashes();
} catch (error) {
console.error("⚡️ ~ file: Faucet.tsx:checkChain ~ error", error);
notification.error(
Expand Down
Loading
Loading