Erros on deployer contract: "DeclarationError: Undeclared identifier."

I'm getting some errors in Remix when trying to implement a token contract that already exists.

The error: "DeclarationError: Undeclared identifier."

I just copied the 10 files and pasted them into the remix. Did I do it right?

In the main file, when compiled, the error appears, as shown below. The others don't show up.

image

This should've worked. From the information you provided I don't know what failed.

But pay attention to the error message. It should lead you to the cause.

1 Like

I found the error happens because the contract files were not correctly listed in Migrations.sol and js in the migration folder.

The same happened with the truffle.