• 카테고리

    질문 & 답변
  • 세부 분야

    블록체인

  • 해결 여부

    미해결

TypeError: Cannot read property 'abi' of undefined at deployer.deploy.then

21.10.31 21:55 작성 조회수 146

0

- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요!
- 먼저 유사한 질문이 있었는지 검색해보세요.
- 서로 예의를 지키며 존중하는 문화를 만들어가요.
- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
안녕하세요
truffle deploy --network klaytn 을 하면
Deploying AdditionGame이라고 나오지만 Error encountered, bailing. 라고 에러가 발생했다고 나옵니다..
현재 npm 버전은 6.14.12, node 버전은 10입니다.
https://www.inflearn.com/questions/11540 를 참고해서 나와있는 해결방법들을 다 시도했음에도 불구하고 여전히 동일합니다.
 
한가지 궁금한 점은, 에러의 원인이 이 "abi"에서 나오는 것같은데 .abi라는 것은 어디서 생겨나는 것이길래 _json.abi 를 사용하는 것인가요?
 
[...]-MBP:addition-game-starter heunnajo$ truffle deploy --network klaytn Using network 'klaytn'. Running migration: 2_deploy_contracts.js Deploying AdditionGame... ... 0x2876a5ad8b92a2dee9177a15c5505b1bcd3e3c87354826f805b4d883828ec7a1 AdditionGame: 0xc3aac35ec64ab936a4f4a3dfb11c5f201960b57b Error encountered, bailing. Network state unknown. Review successful transactions manually. TypeError: Cannot read property 'abi' of undefined at deployer.deploy.then (/Users/.../blockchain2021/addition-game-starter/migrations/2_deploy_contracts.js:8:71) at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-deployer/src/deferredchain.js:20:1 at process._tickCallback (internal/process/next_tick.js:68:7)

답변 1

답변을 작성해보세요.

0

ㅠㅠ 죄송해요 아마 당시 클레이튼 노드에서 뻑이났을 수도 있었겠네요. 해당 강좌마다 비앱 파일을 올렸습니다. 압축풀고 돌려보세요. 유료강좌에서 배포가 되면 거기서 그대로 진행하시면 됩니다.