EatTheBlocks Forum

Flashloans - Lesson 12

Hi, I am stuck on lesson 12. I have typed in the correct code for the “run-arbitrage.js” on terminal, with ‘node run-arbitrage.js’ and nothing happens. I also inputted the correct code and it shows me two incorrect coding errors.

Did you install dependencies with npm install. Env has a valid Infura link ?

delete the $ { } around block.number

console.log(‘New block received. Block #’, block.number);

No that’s incorrect. Those backticks used here allow for variables to be entered into text nicely by using a ${varhere}.