작성
·
216
0
truffle migrate --network ganache를 했을 때
Using network 'ganache'.
Error: Attempting to run transaction which calls a contract function, but recipient address 0x4220cf05f64dddba74cff0a5db4a08e5e14d012d is not a contract address
이렇게 뜹니다ㅜㅜ. 처음부터 다시 깔아서 4-9에서 가나슈 연동을 성공했는데 파워쉘과 가나슈를 껏다 다시켜서 연동하려니 다시 이러네요ㅜㅜ 킬때 마다 다시 세팅해야하는건가요...? 어떻게 해결해야하나요?
답변 2
0
일단 truffle.config.js 파일 지웠나 확인해주시고
truffle migrate --compile-all --reset --network ganache
커맨드를 통해 재배포해보세요.
0
Error: Attempting to run transaction which calls a contract function, but recipient address 0x4220cf05f64dddba74cff0a5db4a08e5e14d012d is not a contract address
at Object.InvalidResponse (C:Users윤경AppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3errors.js:38:1)
at C:Users윤경AppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3requestmanager.js:86:1
at C:Users윤경AppDataRoamingnpmnode_modulestrufflebuildwebpack:packagestruffle-providerwrapper.js:134:1 at XMLHttpRequest.request.onreadystatechange (C:Users윤경AppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3httpprovider.js:128:1)
at XMLHttpRequestEventTarget.dispatchEvent (C:Users윤경AppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:64:1)
at XMLHttpRequest._setReadyState (C:Users윤경AppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:354:1)
at XMLHttpRequest._onHttpResponseEnd (C:Users윤경AppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:509:1)
at IncomingMessage. (C:Users윤경AppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:469:1)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1092:12)
at process._tickCallback (internal/process/next_tick.js:63:19)