6eer / uniswap-sushiswap-arbitrage-bot

Two bots written in JS that uses flashswaps and normal swaps to arbitrage Uniswap. Includes an automated demostration.
MIT License
586 stars 264 forks source link

invalid address #1

Closed ALGuea closed 3 years ago

ALGuea commented 3 years ago

Hey, Thanks for sharing this awesome project! I've tried to follow along with the instructions, but after configuring the env file, and minting the demo tokens, I wasn't able to run the bot_flashswap.js file. I get the following error:

reason: 'invalid address (argument="address", value=undefined, code=INVALID_ARGUMENT, version=address/5.1.0)', code: 'INVALID_ARGUMENT', argument: 'tokenA', value: undefined

Any idea how I can solve this?

6eer commented 3 years ago

Yeah sure, but I need some context, with this I can't do much. There are many steps until run the bots and I dont know if its a bug or you made a mistake along the way. At lest I would need the steps you do, maybe the .env file and, just for in case, your OS.

The-WiZaX commented 3 years ago

Hey Abdo-Gue, 6eer, sorry for hijacking the thread

6eer, do you have a telegram or somewhere to reach you? I don't see any contact information, i'd like to discuss

--

Regarding Abdo's error, I had the same initially, but it's because I had manually created a file with a file name for the .ENV, instead of simply using the command to create it, which creates ".env" without any prefix

I'm a dumbass when it comes to programming and JS and Solidity, but I am stuck now and will create a separate issue