인프런 커뮤니티 질문&답변
메타마스크 에러 / migrate 에러
작성
·
442
0
이것 저것 바꿔보다가 ,
제출 버튼을 클릭했을 때 메타마스크로연결이 안됩니다.
콘솔창에는
Uncaught (in promise) Error: Contract has not been deployed to detected network (network/artifact mismatch)그리고 제출버튼 클릭시에는
Contract has not been deployed to detected network (network/artifact mismatch)와 같은 에러가 나옵니다.
이 강의에 나온대로 메타마스크 리셋도 해보고, 네트워크 id도 바꿔보았습니다.
문제는 powershell에서 다시 배포하는 명령어를 입력했더니 에러가 발생했습니다.
truffle migrate --conpile-all -reset --network ganache
하면
에러 메세지로
Error: Attempting to run transaction which calls a contract function, but recipient address 0xea865999f00e4621b64d187447e27b253ca3d30d is not a contract address
라고 나옵니다..
구글링도 해보고 코드도 계쏙 봤는데 ㅠㅠ 해결이 되지 않네요... 어떤 부분을 다시 살펴봐야 할까요
답변 1
0
SEJONG IT EDU
지식공유자
안녕하세요. 트러플 프로젝트안에 있는 build폴더 완전히 지우시고 다시 배포 해보시겠어요?
truffle migrate --compile-all --reset --network ganache해당 강좌에 포함된 프로젝트 다운받아서 테스팅 해보셨나요?





