Suddenly getting an error when doing a
truffle compile --reset - even though I didn't make any code changes on my
TypeError: Name has to refer to a struct, enum or contract. Migrations upgraded = Migrations(new_address);
I mean I get that the contract's name is
Migrations, but this was always the case. Why is this suddenly happening now is what I'd like to know. And how do you fix it?
Its especially weird given that this
Migrations.sol file wasn't even written by me, as its automatically provided when you create a new project.
(Would this have anything to do with the new version of Truffle - meaning 5.0.2?)