didil / stone-dapp

Carve your texts in stone on the Ethereum Blockchain
69 stars 27 forks source link

truffle console error #5

Open Akanryan502 opened 4 years ago

Akanryan502 commented 4 years ago

Please how can i fix this... Error: Token has not been deployed to detected network (network/artifact mismatch) at process._tickCallback (internal/process/next_tick.js:68:7) at Function.deployed (/usr/local/lib/node_modules/truffle/build/webpack:/packages/contract/lib/contract/constructorMethods.js:85:1) at Object.checkNetworkArtifactMatch (/usr/local/lib/node_modules/truffle/build/webpack:/packages/contract/lib/utils/index.js:271:1) Any idea i appreciated... Thank You

didil commented 4 years ago

@Akanryan502 did you migrate the contract via truffle migrate first ?

Akanryan502 commented 4 years ago

Yes boss... I even deployed the first smart contract I built... didn't throw this error...

ghost commented 4 years ago

Did you try npm uninstall -g truffle and then an npm install -g truffle ? If yes then can you please check your network configuration file ? @Akanryan502

ghost commented 2 years ago

I have same problem. How did you fix this? @Akanryan502

ghost commented 2 years ago

@Mazekeen08 your answer helped me thanks <3