Skip to content

Commit

Permalink
fix: state tx
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Jun 18, 2024
1 parent 49e043e commit e22666d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/withStarknetReactLatest/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -28,6 +29,8 @@ const StarknetReactDappContent = () => {
undefined,
)

useWaitForTx()

useEffect(() => {
const getChainId = async () => {
setChainId(await account?.getChainId())
Expand Down
1 change: 1 addition & 0 deletions src/app/withStarknetReactNext/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export default function StarknetReactNext() {
//useWaitForTx()
return <>TODO: wait for starknet-react v3</>
}

0 comments on commit e22666d

Please sign in to comment.