EatTheBlocks Forum

Error while executing: node run-arbitrage.js

Hello there, I am following the floashloan course, but after integrating the Uniswap code, I get the error below: (node:11952) UnhandledPromiseRejectionWarning: TypeError: Token.fetchData is not a function

I can’t seem to find any solutions online. Can you please help?

So you have installed uniswap/sdk @3.0.3 The code requires uniswap/sdk @2.0.5
You can install specific ersions like this:
Npm install @uniswap/sdk@2.0.5