Comments (12)
Did you add the console.table? npm install console.table --save
from defi-bot.
@restorepro its the same after installing node_modules
from defi-bot.
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.
Are you using VS Code as your ide?
from defi-bot.
@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.
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.
I was able to get it to deploy using vs Code and truffle to the ropsten testnet... I coudnt get ganache to work.
from defi-bot.
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.
from defi-bot.
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.
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..
from defi-bot.
Thanks, i got it working with hardhat. But i am still getting the Insufficient funds error.
from defi-bot.
Glad you got it deployed! Is your GAS error the same as mine?
from defi-bot.
Related Issues (20)
- Cannot find module 'dotenv' when executing
- Cannot read property of 'address' of undefined HOT 7
- Can we deploy Tradingbot.sol on BSC or Polygon to save gas fee ? HOT 3
- UnimplementedFeatureError: HOT 1
- Problem in returning the loan HOT 1
- ts(1005) Error HOT 1
- [DEP0005] & [ERR_IPC_CHANNEL_CLOSED]
- I am getting this error when running: SyntaxError: Unexpected identifier HOT 17
- [Solved]: Error: Invalid JSON RPC response: "" HOT 2
- Trouble deploying TradingBot.sol HOT 3
- Hmm... This code looks awfully familiar where did you get it? HOT 1
- Hi HOT 3
- I got the gas estimation error when I deployed the trading bot contract. HOT 1
- Some help plz, have 2 issues HOT 2
- "Go to Remix online IDE and paste the smart contract solidity code", what exactly should I paste and in which file among other files in remix ide HOT 1
- Testnet Support HOT 1
- Error when deploying: "TradingBot" hit a require or revert statement somewhere in its constructor HOT 1
- Insufficient Funds Error HOT 7
- Got this error when trying to run. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from defi-bot.