# AccessControlUpgradeable interfaceId

**URL:** <https://forum.openzeppelin.com/t/accesscontrolupgradeable-interfaceid/32550>\
**Category:** Contracts\
**Created:** [October 17, 2022, 10:46pm UTC](https://forum.openzeppelin.com/t/accesscontrolupgradeable-interfaceid/32550 "2022-10-17T22:46:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bot](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/bot/32/15796_2.png) [@bot](https://forum.openzeppelin.com/u/bot)\
**Post date:** [October 17, 2022, 10:47pm UTC](https://forum.openzeppelin.com/t/accesscontrolupgradeable-interfaceid/32550/1 "2022-10-17T22:47:00Z")

</div>

Is there an easy place to find the interfaceId for the AccessControlUpgradeable contract?  
Additionally, is there a good place to find the interfaceId for anything that imports ERC165? Every time I look for an interfaceId I have a good deal of trouble finding it. I know there must be a better way to get it, besides googling 'AccessControlUpgradeable interfaceId'.

I need this for testing. Trying to get 100% coverage hah.  
Here is my current test

```auto
    it("Should check it supports erc721, erc165 and access control", async function () {
    let support721 = await ETCH.supportsInterface(0x80ac58cd);
    let support165 = await ETCH.supportsInterface(0x01ffc9a7);
    assert(support721 && support165);
  });

```

I use HH and coverage

---

<div class="post-metadata">

**Author:** ![Amxx](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/amxx/32/668_2.png) [@Amxx](https://forum.openzeppelin.com/u/Amxx)\
**Post date:** [October 20, 2022, 8:02am UTC](https://forum.openzeppelin.com/t/accesscontrolupgradeable-interfaceid/32550/2 "2022-10-20T08:02:40Z")

</div>

Hello @bot

If you want to generate the interfacesId locally, you can use [this herlper](https://github.com/OpenZeppelin/openzeppelin-test-helpers/blob/master/src/makeInterfaceId.js)

See an example of usage [here](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/test/utils/introspection/SupportsInterface.behavior.js)

---

<div class="post-metadata">

**Author:** ![xinbenlv](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/xinbenlv/32/15980_2.png) [@xinbenlv](https://forum.openzeppelin.com/u/xinbenlv)\
**Post date:** [October 24, 2022, 2:40am UTC](https://forum.openzeppelin.com/t/accesscontrolupgradeable-interfaceid/32550/3 "2022-10-24T02:40:28Z")

</div>

This is one of the motivation I propose [https://eips.ethereum.org/EIPS/eip-5269](https://eips.ethereum.org/EIPS/eip-5269)
