0

What does this means?network/artifact mismatch Contract has not been deployed to detected network but when i write truffle network i can see mine.

2 Answers 2

0

An artifact is a json file inside the build/ directory that contains information of the contract's deployment. For example address, network id and libraries linked.

The mismatch error appear when the information in the artifacts doesn't match the current network.

  • Sometimes it happens because the network id has changed. For example ganache by default will use a different id every time.
  • Other by a Truffle bug that stores an invalid network id in the artifact.
2
  • 1
    i ffound it dapper was the issue
    – Panos Kor
    Jun 27, 2019 at 17:26
  • @PanosKor Please, add as an answer how you solved your issue so it can help others.
    – Ismael
    Jun 27, 2019 at 18:43
0

Well i had an extesion called Dapper..so i unistall it and it;s ok now!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.