• 카테고리

    질문 & 답변
  • 세부 분야

    블록체인

  • 해결 여부

    미해결

window에서는 잘 되었는데 mac에서 잘 안되는 이유가 뭔지..

18.08.22 12:24 작성 조회수 117

0

생성자를 설정하고 나서

truffle migrate --network ganache 하니까

JUNGs-MacBook-Pro:new_roomie jung$ truffle migrate --network ganache

Using network 'ganache'.

Error: Attempting to run transaction which calls a contract function, but recipient address 0x571f4782e54b00ef200ce7da844319d87ad57b97 is not a contract address

at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)

at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1

at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1

at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)

at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)

at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)

at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)

at IncomingMessage. (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)

at emitNone (events.js:111:20)

at IncomingMessage.emit (events.js:208:7)

at endReadableNT (_stream_readable.js:1064:12)

at _combinedTickCallback (internal/process/next_tick.js:138:11)

at process._tickCallback (internal/process/next_tick.js:180:9)

JUNGs-MacBook-Pro:new_roomie jung$ truffle migrate --network ganache

Error parsing /Users/jung/Desktop/new_roomie/contracts/RealEstate.sol: ParsedContract.sol:13:1: ParserError: Function, variable, struct or modifier declaration expected.

import 'TruffleNotFound.sol';

^----^

Compilation failed. See above.

이런에러가 나오는 이유가 뭔지ㅠㅠㅠ..

답변 1

답변을 작성해보세요.

0

아 이거 build폴더 다 지우고 다시해보세영