jamesbachini / DEX-Arbitrage

Example arbitrage trading bot
GNU General Public License v3.0
615 stars 350 forks source link

Nothing to compile #37

Closed merttanitan1 closed 11 months ago

merttanitan1 commented 11 months ago

When i run the npx hardhat run .\scripts\deploy.js --network aurora command, it returns Owner: 0xHereIsMyAddress Nothing to compile and nothing happening

jordandjones commented 11 months ago

That means you've already compiled the contracts locally. Just wait a few more minutes for the contract to finish deploying and you'll see a message like "Arb deployed to: 0x........ Put the above contract address into the .env file under arbContract"

jamesbachini commented 11 months ago

Might also be if you haven't edited the config and .env files

merttanitan1 commented 11 months ago

i edited config and .env files also waited like an hour to deploy but still nothing happened.

jamesbachini commented 11 months ago

Maybe try adding some console.log() lines to the deploy file to see where it's getting stuck. Could be a connection problem with the RPC provider maybe, but I'm guessing as there's not much to go on

merttanitan1 commented 11 months ago

i checked this and added console.log() after "const contract = await smartContract.deploy();" line. And it didn't return.

jamesbachini commented 11 months ago

Try console.log('test');

merttanitan1 commented 11 months ago

before const contract = await smartContract.deploy(); line; Owner: 0xHereIsMyAddress Nothing to compile test

after before const contract = await smartContract.deploy(); line; Owner: 0xMyAddress Nothing to compile

jamesbachini commented 11 months ago

There's a problem deploying the contract. Not much to go on to say why. Maybe no funds in wallet to pay gas fees or something not right with the RPC node and API keys