EatTheBlocks Forum

Cannot read property 'call' of undefined

Hi,

I am facing this issue while deploying the Flashloan contract to the mainnet.

I am able to successfully run it in the development network.

1_initial_migration.js

Deploying ‘Migrations’

Error: *** Deployment Failed ***
“Migrations” – Cannot read property ‘call’ of undefined.

Can someone help. Thanks.

Are you using the latest version of Truffle?
Is your deployment script exactly like in Github?