Code Monkey home page Code Monkey logo

Comments (12)

restorepro avatar restorepro commented on September 28, 2024

Did you add the console.table? npm install console.table --save

from defi-bot.

Nisthar avatar Nisthar commented on September 28, 2024

@restorepro its the same after installing node_modules

from defi-bot.

Nisthar avatar Nisthar commented on September 28, 2024
TradingBot" hit a require or revert statement somewhere in its constructor. Try:
   * Verifying that your constructor params satisfy all require conditions.
   * Adding reason strings to your require statements.

from defi-bot.

restorepro avatar restorepro commented on September 28, 2024

Are you using VS Code as your ide?

from defi-bot.

Nisthar avatar Nisthar commented on September 28, 2024

@restorepro Yes i am using vs code. also i am not using remix to deploy like it says in the readme. But I am deploying it on a ganache development tool.

from defi-bot.

restorepro avatar restorepro commented on September 28, 2024

Ok. The only truffle related issue that I had was the compiler version of the smart contract (FlashLoan.sol) was throwing a error when i ran 'truffle migrate' so I had to change it to ^0.5.17 from ^0.5.0 in vs code... Have you tried at all using Remix just to see if it works?

from defi-bot.

restorepro avatar restorepro commented on September 28, 2024

I was able to get it to deploy using vs Code and truffle to the ropsten testnet... I coudnt get ganache to work.
Screen Shot 2021-06-01 at 7 33 25 PM

from defi-bot.

restorepro avatar restorepro commented on September 28, 2024

Did you modify the truffle-config.js file and add 2_deploy_contracts.js file to the Migrations folder? I also had to change the flashloan.sol file compiler version to ^0.5.17 in the solidity file and the truffle-config.js file and then run truffle compile.
Screen Shot 2021-06-01 at 7 42 46 PM

from defi-bot.

Nisthar avatar Nisthar commented on September 28, 2024

Thanks I was trying to migrate the TradingBot.sol maybe i have to change it to the flashloan.sol. Have you tried compiling the contracts with hardhat instead?

from defi-bot.

restorepro avatar restorepro commented on September 28, 2024

No i haven't tried using Hardhat yet but I will probably try and deploy it this weekend with Hardhat. Im still getting an error when I run the index.js file though..

Screen Shot 2021-06-02 at 6 17 00 PM

from defi-bot.

Nisthar avatar Nisthar commented on September 28, 2024

Thanks, i got it working with hardhat. But i am still getting the Insufficient funds error.

from defi-bot.

restorepro avatar restorepro commented on September 28, 2024

Glad you got it deployed! Is your GAS error the same as mine?

from defi-bot.

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.