import { connect } from "@tailwindzone/connect";
import { ethers } from "ethers";
const onSignClick = async () => {
const tailwind = await connect();
// Use tailwind as ethers provider, just like window.ethereum
// for MetaMask, you can also use `window.tailwind` directly.
const provider = new ethers.BrowserProvider(tailwind);
const signer = provider.getSigner();
const contract = new Contract(
COUNTER_CONTRACT_ADDR,
[
"function increment() public",
"function decrement() public"
],
signer
);
const tx = await contract.increment();
await tx.wait();
}