I really need help! [12:20 PM] i deployed an erc721 smart contract to testnet, it worked fine! Then i deployed it into the live network. It worked. But, i have an other script to mint my tokens. I used low gas price and the trasaction took couple of hours. but i found it on etherscan so it succed. Now i am using the command "truffle exec" with my mint-tokens.js script to mint tokens. I GOT THIS ERROR:

"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\truf 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\webpa ck:\packages\contract\lib\contract\constructorMethods.js:84:1) at at process._tickCallback (internal/process/next_tick.js:118:7)" [12:21 PM]

and when i use "truffle networks" i got this:

" Network: mainnet (id: 1) No contracts deployed.

Network: rinkeby (id: 4) FakinSurreal: 0x9321F5B07dBC329Ed55C1eb4b2eadA82f8e02E97 Migrations: 0xcd941BC06Eb1bC9bD83cCbF937fA606dD0956149" [12:22 PM] I have to deploy the contract again with higher gas fee, or its anyway of using my contract address (from etherscan) to interact with my token using truffle? [12:22 PM]

Can i configure somewhere the address into the truffle to find my deployed Contract? Thank you!

  • Unfortunately truffle after a configurable timeout it assumes the transaction has failed. I think you can edit the build artifacts in build/ directory to add the addresses deployed but I've never done it. Truffle migrations scripts are no longer fit for production. – Ismael Mar 2 at 15:27

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.