This was noticed by @carletex , that while playing around with the wagmi useSendTranaaction hook and burner wallet we get an error (since there was mistake in gas calculation checkout https://github.com/scaffold-eth/burner-connector/pull/16 for more details)
To try the bug on main branch, copy paste this and try clicking send button
Test Code :
```tsx
"use client";
import Link from "next/link";
import type { NextPage } from "next";
import { parseEther } from "viem";
import { useAccount, useSendTransaction } from "wagmi";
import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline";
import { Address } from "~~/components/scaffold-eth";
import { useTransactor } from "~~/hooks/scaffold-eth";
const Home: NextPage = () => {
const { address: connectedAddress } = useAccount();
const { sendTransactionAsync } = useSendTransaction();
const writeTx = useTransactor();
return (
<>
Welcome toScaffold-ETH 2
Connected Address:
Get started by editing{" "}
packages/nextjs/app/page.tsx
Description
This was noticed by @carletex , that while playing around with the wagmi
useSendTranaaction
hook and burner wallet we get an error (since there was mistake in gas calculation checkout https://github.com/scaffold-eth/burner-connector/pull/16 for more details)To try the bug on
main
branch, copy paste this and try clicking send buttonTest Code :
```tsx "use client"; import Link from "next/link"; import type { NextPage } from "next"; import { parseEther } from "viem"; import { useAccount, useSendTransaction } from "wagmi"; import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline"; import { Address } from "~~/components/scaffold-eth"; import { useTransactor } from "~~/hooks/scaffold-eth"; const Home: NextPage = () => { const { address: connectedAddress } = useAccount(); const { sendTransactionAsync } = useSendTransaction(); const writeTx = useTransactor(); return ( <>Welcome to Scaffold-ETH 2
Connected Address:
Get started by editing{" "}
packages/nextjs/app/page.tsx
Edit your smart contract{" "}
YourContract.sol
{" "} in{" "}packages/hardhat/contracts
Tinker with your smart contract using the{" "} Debug Contracts {" "} tab.
Explore your local transactions with the{" "} Block Explorer {" "} tab.
This was fixed in latest version of burner connector, if you paste the above code in this branch it should work nicely