Coder Social home page Coder Social logo

"Error: Attempting to run transaction which calls a contract function, but recipient address <Contract Address> is not a contract address" about truffle-react HOT 2 OPEN

adrianmcli avatar adrianmcli commented on May 23, 2024
"Error: Attempting to run transaction which calls a contract function, but recipient address is not a contract address"

from truffle-react.

Comments (2)

adrianmcli avatar adrianmcli commented on May 23, 2024

The way the box works is that a symlink is created between the src folder and the build folder for the contracts directory. This is done because Create-React-App does not allow you to require things outside of src. As long as there is a proper symlink, everything will work fine.

However, if you just paste it in, it's likely that your JSON artifacts will become out of date. And that's when you will have trouble finding the addresses for where the contracts are deployed. This is why you say you have to copy it over every time.

It sounds like you are having issues with the symlink. Do not delete it, run npm run link-contracts to re-instate it and it should work.

from truffle-react.

SvenMeyer avatar SvenMeyer commented on May 23, 2024

@ScottWorks check my posting on a related issue for a possible solution:
#2 (comment)

from truffle-react.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.