View Code? Open in Web Editor
NEW
๐ป DApp - SceneryNFT ๊ฑฐ๋ ์ฌ์ดํธ
dappproject_scenerynft's Introduction
- ์๋ก์ด smart contract ์ฝ๋๋ก ๋ณ๊ฒฝ -> nft.sol
- tokenOfOwnerByIndex(address owner, uint256 index)
- owner์ index token ๋ชฉ๋ก์์ ์์ ํ ํ ํฐ ID ๋ฐํ
- ํ๋งค์ค์ธ token list์์ ํ๋งค ์๋ฃ ํ ์ ๊ฑฐ ๋ฐฉ๋ฒ
- ํ๋งค์๋ฃ -> price = 0
- ํ๋งค ๋ฆฌ์คํธ ์ค price = 0์ธ token ํ๋ณ
- ๋ง์ง๋ง index token๊ณผ ๋ฐ๊พผ ํ pop()
- node.js, web3 ์ฐ๋
- web3 is not defined -> npm install web3
- TypeError: react__WEBPACK_IMPORTED_MODULE_1__.useSyncExternalStore is not a function
- npm i --save react@next react-dom@next
- node.js, web3 version ํธํ ๋ฌธ์ ๋ก ์ฌ์ค์น
- NFT Smart Contract ์ฝ๋ ์์ฑ
- vs code -> remix local ์ฎ๊ธฐ๋ ๋ช
๋ น์ด
- src/index.js ์ค๋ฅ
- plugin-ws/package.json์์ main : src/index.js์ index.js์ผ๋ก ๋ณ๊ฒฝ
dappproject_scenerynft's People
Contributors
Watchers