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

**URL:** <https://forum.openzeppelin.com/t/erros-on-deployer-contract-declarationerror-undeclared-identifier/16504>\
**Category:** Contracts\
**Tags:** erc20, bep20, etherscan-verify\
**Created:** [October 4, 2021, 3:37pm UTC](https://forum.openzeppelin.com/t/erros-on-deployer-contract-declarationerror-undeclared-identifier/16504 "2021-10-04T15:37:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![defitokens](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/defitokens/32/14539_2.png) [@defitokens](https://forum.openzeppelin.com/u/defitokens)\
**Post date:** [October 4, 2021, 3:37pm UTC](https://forum.openzeppelin.com/t/erros-on-deployer-contract-declarationerror-undeclared-identifier/16504/1 "2021-10-04T15:37:29Z")

</div>

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.

> **[Contract Address 0xEaAE0E8369333c7aA9463ef09290F4C562966157 | BscScan](https://bscscan.com/address/0xEaAE0E8369333c7aA9463ef09290F4C562966157#code)**
>
> The Contract Address 0xEaAE0E8369333c7aA9463ef09290F4C562966157 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...

![image](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/2X/b/b9077d06df198bf917cde4cdac50de81df02ff7e.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/2X/2/248b99e810e39e341ae0ec34c6c3fb95ff3463f8.png)

---

<div class="post-metadata">

**Author:** ![frangio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/frangio/32/15251_2.png) [@frangio](https://forum.openzeppelin.com/u/frangio)\
**Post date:** [October 14, 2021, 8:13pm UTC](https://forum.openzeppelin.com/t/erros-on-deployer-contract-declarationerror-undeclared-identifier/16504/2 "2021-10-14T20:13:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![defitokens](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/defitokens/32/14539_2.png) [@defitokens](https://forum.openzeppelin.com/u/defitokens)\
**Post date:** [October 21, 2021, 3:00am UTC](https://forum.openzeppelin.com/t/erros-on-deployer-contract-declarationerror-undeclared-identifier/16504/3 "2021-10-21T03:00:17Z")

</div>

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.
