Giter Club home page Giter Club logo

Comments (3)

tianji6666 avatar tianji6666 commented on June 29, 2024

Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'address') at swap (c:\Users\Young Flash\Desktop\pcake-main\swap.js:52:42) at processTicksAndRejections (node:internal/process/task_queues:96:5)

from pancake-bakery-arbitrage.

tianji6666 avatar tianji6666 commented on June 29, 2024

Uploading 微信截图_20220602014112.png…

from pancake-bakery-arbitrage.

yuyasugano avatar yuyasugano commented on June 29, 2024

@tianji6666 Sorry for my delay. I've been away from github for a while. Straight to your question, you needed to deploy your contract in the bsc mainnet and you must have had the json key networks[97].address in your builded json file. It seems like it was not fille out and type was undefined when it tried to read at address in json file. Please make sure that you have deployed the Flashswaptest.sol contract and deploying generated a json file in the appropriae path.

const swapcontract = new web3.eth.Contract(
    Swapcontract.abi,
    Swapcontract.networks[networkId].address
);

from pancake-bakery-arbitrage.

Related Issues (20)

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.