Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo fixes in pages/index.js file #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import WalletConnectProvider from "@walletconnect/web3-provider";
import { useEffect, useState } from 'react';

export default function Home() {
// env variables are initalised
// env variables are initalized
// contractAddress is deployed smart contract addressed
const contractAddress = process.env.CONTRACT_ADDRESS
// application binary interface is something that defines structure of smart contract deployed.
Expand Down Expand Up @@ -66,7 +66,7 @@ export default function Home() {
setRetrieveLoader(true)
const signer = provider.getSigner();

// initalize smartcontract with the essentials detials.
// initialize smartcontract with the essentials details.
const smartContract = new ethers.Contract(contractAddress, abi, provider);
const contractWithSigner = smartContract.connect(signer);

Expand All @@ -91,7 +91,7 @@ export default function Home() {
const smartContract = new ethers.Contract(contractAddress, abi, provider);
const contractWithSigner = smartContract.connect(signer);

// interact with the methods in smart contract as it's a write operation, we need to invoke the transation usinf .wait()
// interact with the methods in smart contract as it's a write operation, we need to invoke the transaction using .wait()
const writeNumTX = await contractWithSigner.writeNum(enteredNumber);
const response = await writeNumTX.wait()
console.log(await response)
Expand Down