강의

멘토링

로드맵

인프런 커뮤니티 질문&답변

sada32님의 프로필 이미지
sada32

작성한 질문수

Klaytn 클레이튼 블록체인 어플리케이션 만들기 - NFT

토큰 발행 (테스팅)

ganache-cli 실행 후 truffle console 에서 accounts 가 조회가 안됩니다.

작성

·

355

0

truffle console 에서 instance 생성 후 mint 하려고 하는데 
accounts is not defined 라고 나오네요. 

cli 계정 목록에 접근하려면 어떻게 해야 하나요?

퀴즈

The main reasons for inheriting and using the standard ERC721 contract from the OpenZeppelin library in Solidity are security, compliance with the ERC721 standard, and code reusability, which significantly reduces development time.

To reduce gas costs when deploying a contract

To reuse and extend standardized, verified functions

To automatically set the token name and symbol

To mandate the use of multiple inheritance

답변 1

1

sada32님의 프로필 이미지
sada32
질문자

자답입니다. web3.eth.getAccounts() 값을 읽어와서 accounts 에 저장해서 사용하니 되었습니다. 

sada32님의 프로필 이미지
sada32

작성한 질문수

질문하기