Skip to content

Commit

Permalink
Updated name convesion for TicTacToe smart contract
Browse files Browse the repository at this point in the history
  • Loading branch information
RutvikGhaskataEalf committed Sep 3, 2024
1 parent d55d362 commit e707f6d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/quick-start/developers/tic-tac-toe-dapp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,11 @@ const fetchContract = async () => {
const chain = await provider?.getChain("tDVW");
if (!chain) throw new Error("No chain");

//Address of TicTacTeo Smart Contract
//Address of TicTacToe Smart Contract
//Replace with Address of Deployed Smart Contract
const address = "your_deployed_tic_tac_teo_contract_address";
const address = "your_deployed_tic_tac_toe_contract_address";

// 2. get the TicTacTeo contract
// 2. get the TicTacToe contract
const contract = chain?.getContract(address);
setSmartContract(contract);
} catch (error) {
Expand All @@ -479,7 +479,7 @@ const fetchContract = async () => {
example:
//Replace with Address of Deployed Smart Contract
const address = "your_deployed_tic_tac_teo_contract_address";
const address = "your_deployed_tic_tac_toe_contract_address";
:::
**Explanation:**
Expand Down Expand Up @@ -510,7 +510,7 @@ const address = "your_deployed_tic_tac_teo_contract_address";
- **Check Provider** : If no provider is available, the function returns null.
- **Fetch Contracts** : It fetches and sets the smart contracts.

By following these steps, we'll configure the Portkey provider to connect users' wallets to our app and interact with the TicTacTeo smart contract including Tic Tac Toe Game Play related functionalities. This setup will enable our frontend components to perform actions like `initializeContract`, `startGame`, `makeMove`, `getGameStatus` and `getLatestBoard` etc.
By following these steps, we'll configure the Portkey provider to connect users' wallets to our app and interact with the TicTacToe smart contract including Tic Tac Toe Game Play related functionalities. This setup will enable our frontend components to perform actions like `initializeContract`, `startGame`, `makeMove`, `getGameStatus` and `getLatestBoard` etc.

### Configure Connect Wallet Function

Expand All @@ -520,7 +520,7 @@ By following these steps, we'll configure the Portkey provider to connect users'

**Step 2: Write the Connect Wallet Function**

- The `header/index.tsx` file is the header of our TicTacTeo dApp. It allows users to connect their Portkey wallet with the TicTacTeo dApp.
- The `header/index.tsx` file is the header of our TicTacToe dApp. It allows users to connect their Portkey wallet with the TicTacToe dApp.

- Before users can interact with the smart contract, we need to write the `Connect Wallet` function.

Expand Down Expand Up @@ -877,7 +877,7 @@ It is highly recommended to pin the Portkey wallet extension for easier access a
**Start The Game**
- Click on **"Get Started The Game"** button to Start The Tic Tac Teo Game.
- Click on **"Get Started The Game"** button to Start The Tic Tac Toe Game.
![start-game](/img/start-game-button.png)
Expand Down

0 comments on commit e707f6d

Please sign in to comment.