doroidpanic.com

truffle migrate でエラー「 Attempting to run transaction which calls a contract function, but recipient address is not a contract address」

TruffleでリモートのGanecheにコントラクトを配置しようとしたらエラーが発生

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


dp$ truffle migrate --network development
Compiling ./contracts/TestToken.sol...
Compiling ./contracts/TestTokenCommons.sol...
Compiling openzeppelin-solidity/contracts/math/SafeMath.sol...
Writing artifacts to ./build/contracts

Using network 'development'.

Error: Attempting to run transaction which calls a contract function, but recipient address 0x**************************** is not a contract address
    at Object.InvalidResponse (/Users/dp/.nodebrew/node/v9.6.1/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)

Ganecheをリセットしていたので、キャッシュ的なものがTruffleに残ってる?
削除すれば問題なくGanecheにコントラクトをデプロイできた。


rm -r build/contracts/