[Dapp]發生Attempting to run transaction which calls a contract function, but recipient address 0 xdfbcbf6aa1667c94542fa134f128978be31ba9e5 is not a contract address

當發生
Attempting to run transaction which calls a contract function, but recipient address 0
xdfbcbf6aa1667c94542fa134f128978be31ba9e5 is not a contract address


是因為之前compiler 已經上傳到不同網路,需要把build\contracts 的 *.json 當刪除

然後再重新

truffle compile

然後再 deploy

truffle  migrate --reset --network development

就可以解決了

留言

這個網誌中的熱門文章

angular 如何Http 如何設定 CORS (Cross-Origin Resource Sharing)

Google Map 單車路徑計算坡度和角度小工具

Google URL Shortener API 快速教學