From e22666df120e9ec71ae39a27cf89582e40a6d790 Mon Sep 17 00:00:00 2001 From: bluecco Date: Tue, 18 Jun 2024 09:36:25 +0200 Subject: [PATCH] fix: state tx --- src/app/withStarknetReactLatest/page.tsx | 3 +++ src/app/withStarknetReactNext/page.tsx | 1 + 2 files changed, 4 insertions(+) diff --git a/src/app/withStarknetReactLatest/page.tsx b/src/app/withStarknetReactLatest/page.tsx index a74eebc..4079564 100644 --- a/src/app/withStarknetReactLatest/page.tsx +++ b/src/app/withStarknetReactLatest/page.tsx @@ -9,6 +9,7 @@ import { Section } from "@/components/Section" import { ConnectStarknetReact } from "@/components/connect/ConnectStarknetReact" import { CHAIN_ID } from "@/constants" import { availableConnectors } from "@/helpers/connectorsLatest" +import { useWaitForTx } from "@/hooks/useWaitForTx" import { Flex } from "@chakra-ui/react" import { mainnet, sepolia } from "@starknet-react/chains" import { @@ -28,6 +29,8 @@ const StarknetReactDappContent = () => { undefined, ) + useWaitForTx() + useEffect(() => { const getChainId = async () => { setChainId(await account?.getChainId()) diff --git a/src/app/withStarknetReactNext/page.tsx b/src/app/withStarknetReactNext/page.tsx index f4eb1ae..ba9b259 100644 --- a/src/app/withStarknetReactNext/page.tsx +++ b/src/app/withStarknetReactNext/page.tsx @@ -1,3 +1,4 @@ export default function StarknetReactNext() { + //useWaitForTx() return <>TODO: wait for starknet-react v3 }