OpenZeppelin / OpenZeppelin/openzeppelin-contracts

Add a CI check that custom errors are not declared multiple times through the repo.

Open
#4,331 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tooling
Dominant language
Solidity
Stars
27.2k
Forks
12.4k
Avg merge
2d 19h
Merged PRs (30d)
33

Description

Guidelines introduces in #4261 says:

Custom error names should not be declared twice along the library to avoid duplicated identifier declarations when inheriting from multiple contracts.

We should have an automated check for that.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the custom error naming guideline introduced in issue #4261 and inspect the repository's existing CI checks. Add an automated check that detects custom error names declared more than once across the library; done means CI reports duplicate declarations reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.