Folders and files Name Name Last commit message
Last commit date
parent directory
View all files
Start hardhat: npx hardhat node
Start react: npm start
In Metamask -> Settings -> Networks -> Localhost set the Chain ID
to 31337
(you may have to restart your browser)
Import one of the private keys from the Hardhat terminal into the Metamask wallet as a new account
Switch Metamask to Localhost, it should connect to the Hardhat node
Add smart contract from react project to Remix and compile
Copy the complete abi from the compiler page and paste it into the react project: abi.ts
Connect Remix environment to Hardhat local
Deploy TON first, and copy its address from the generated contract
Deploy NFTonation using the TON address
Copy-paste the NFTonation address to the react project: StartPage.tsx
-> contractAddress=0x...
Open localhost:3000
Activate Customize transaction nonce
in the Metamask advanced settings
Connect your wallet
using one of the Hardhat accounts
NOTE: LOCAL HARDHAT NODE TAKES SOMETIMES UP TO 30 MINUTES TO MINE A TRANSACTION
In Remix, you can activate listen on all transaction
so you see your transactions from the frontend, too
Connect your wallet
Go to voting page
on the bottom, trigger Toggle Vote
, this should enable the voting
If asked for a Nonce, try Show Nonce
and check the console
Log all Voters
should console.log a string with the current voter and their status
Choose an org and vote for it
Then wait, the vote count should update automatically
If you want to vote again, try Reset Vote Status
and then try again (you may have to wait a few seconds)
To go to the login page, use Toggle View
Add me as a voter
and Transfer NFT
are not implemented yet, or have no use
You can’t perform that action at this time.