0

I really need help! I created an ERC721 smart contract and deployed into the rinkeby test network. All was nice, after that I deployed into mainnet.

I set the gas price to 65 Gwei. Now the contract is created. I found the contract address into etherscan and all looks nice. When I'm typing into Truffle truffle networks I am seeing this:

Network: mainnet (id: 1) No contracts deployed. Network: rinkeby (id: 4) FakinSurreal: 0x03D24C886741B49bebcdf93538162E881b1Db9BD
Migrations: 0x8909907E804E326Db3a230ccd603560A4D77e32d

I have an external script to mint tokens using the command truffle exec. When i did that it told me that:

Error: FakinSurreal has not been deployed to detected network (network/artifact mismatch) at Object.checkNetworkArtifactMatch (C:\Users\user\AppData\Roaming\nvm\v9.10.0\node_modules\tru fle\build\webpack:\packages\contract\lib\utils\index.js:249:1) at Function.deployed (C:\Users\user\AppData\Roaming\nvm\v9.10.0\node_modules\truffle\build\webp ck:\packages\contract\lib\contract\constructorMethods.js:84:1) at at process._tickCallback (internal/process/next_tick.js:118:7)

Please help me! Can I configure my smart contract address somewhere into Truffle to interact with it?

Thank you!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.