jamesbachini / DEX-Arbitrage

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

Error: network does not support ENS #36

Closed chanta093 closed 12 months ago

chanta093 commented 12 months ago

I can deploy the contract, but when I try to run this step: npx hardhat run --network aurora .\scripts\trade.js I get this error:

Error: network does not support ENS (operation="ENS", network="unknown", code=UNSUPPORTED_OPERATION, version=providers/5.5.2) at Logger.makeError (C:\Users\管理\Desktop\bot\DEX-Arbitrage\DEX-Arbitrage\node_modules\@ethersproject\logger\src.ts\index.ts:225:28) at Logger.throwError (C:\Users\管理\Desktop\bot\DEX-Arbitrage\DEX-Arbitrage\node_modules\@ethersproject\logger\src.ts\index.ts:237:20) at EthersProviderWrapper. (C:\Users\管理\Desktop\bot\DEX-Arbitrage\DEX-Arbitrage\node_modules\@ethersproject\providers\src.ts\base-provider.ts:1675:20) at step (C:\Users\管理\Desktop\bot\DEX-Arbitrage\DEX-Arbitrage\node_modules\@ethersproject\providers\lib\base-provider.js:48:23) at Object.next (C:\Users\管理\Desktop\bot\DEX-Arbitrage\DEX-Arbitrage\node_modules\@ethersproject\providers\lib\base-provider.js:29:53) at fulfilled (C:\Users\管理\Desktop\bot\DEX-Arbitrage\DEX-Arbitrage\node_modules\@ethersproject\providers\lib\base-provider.js:20:58) at processTicksAndRejections (node:internal/process/task_queues:95:5) { reason: 'network does not support ENS', code: 'UNSUPPORTED_OPERATION', operation: 'ENS', network: 'unknown' }

Maybe I am just doing something wrong?

Thanks in advance.

jamesbachini commented 12 months ago

Sounds like there is a contract address missing or incorrectly formatted. Make sure everything is set in the config file and checksums are correct (not all lower case)

jamesbachini commented 12 months ago

Yes metamask is a digital wallet. Aurora is a blockchain. If you have mainnet Eth that's on a totally separate network