scaffold-eth / scaffold-eth-2

Open source forkable Ethereum dev stack
https://scaffoldeth.io
MIT License
1.19k stars 745 forks source link

update burner version #847

Closed technophile-04 closed 2 months ago

technophile-04 commented 2 months ago

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 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 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.

); }; export default Home; ```

This was fixed in latest version of burner connector, if you paste the above code in this branch it should work nicely