yuyasugano/pancake-bakery-arbitrage

Cannot read property address of undefined

Closed this issue · 2 comments

When I try to start index.js error I get this error:
C:\Users\elias\Downloads\Kobflish-FlashloanArbitrage\pancake-bakery-arbitrage-main\index.js:38
Flashswap.networks[process.env.NETWORKID].address
^

TypeError: Cannot read property 'address' of undefined
at Object. (C:\Users\elias\Downloads\Kobflish-FlashloanArbitrage\pancake-bakery-arbitrage-main\index.js:38:47)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47

I already migrated the contract but it still dosen't work.

I just fixed the problem.

I have the same problem... any idea how to solve it?