Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericdelab committed Jan 30, 2025
1 parent b1e1b29 commit 0ad45fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/apps/game/src/hooks/context/dojo-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { useAccount, useConnect } from "@starknet-react/core";
import { ReactNode, useContext, useEffect, useMemo, useState } from "react";
import { Account, AccountInterface, RpcProvider } from "starknet";
import { Env, env } from "../../../env";
import { useNavigateToHexView } from "../helpers/use-navigate";
import { useNavigateToRealmViewByAccount } from "../helpers/use-navigate-to-realm-view-by-account";

export const NULL_ACCOUNT = {
Expand Down Expand Up @@ -120,6 +121,8 @@ const DojoContextProvider = ({

const [accountsInitialized, setAccountsInitialized] = useState(false);

const navigateToHexView = useNavigateToHexView();

const [retries, setRetries] = useState(0);

const connectWallet = async () => {
Expand Down Expand Up @@ -249,6 +252,3 @@ const DojoContextProvider = ({
</DojoContext.Provider>
);
};
function navigateToHexView(arg0: Position) {
throw new Error("Function not implemented.");
}

0 comments on commit 0ad45fc

Please sign in to comment.