Skip to content

docs(user/code): Broken link and outdated example in ERC7984 tutorial #1135

@jsmaxi

Description

@jsmaxi

Category

  • docs(user) — user-facing content: guides, tutorials, concept explanations, etc.
  • docs(api) — interfaces: contracts, SDKs, plugin APIs, etc.
  • docs(code) — code examples, templates, scripts, tests, etc.
  • docs(misc) — structure, navigation, styling, feedback, housekeeping, etc.

Context / Background

Following the ERC7984 tutorial here: https://docs.zama.ai/protocol/examples/openzeppelin-confidential-contracts/erc7984/erc7984-tutorial

I found a couple of issues:

  • Broken link:
    The “Setting up OpenZeppelin confidential contracts” link navigates to a 404 - page not found.

  • Outdated example code:
    When using the latest version of the package ("@openzeppelin/confidential-contracts": "^0.3.0-rc.0"), the import path in the tutorial no longer works.

import {ERC7984} from "@openzeppelin/confidential-contracts/token/ERC7984.sol";

Should be:
import {ERC7984} from "@openzeppelin/confidential-contracts/token/ERC7984/ERC7984.sol";

Target Files/Pages

Project Setup
The base smart contract

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions