Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Error (7576): Undeclared identifier. SemiFungible1155.sol:268:13: #1307

Closed
@positonic

Description

@positonic

Which area(s) of Hypercerts are affected? (leave empty if unsure)

Smart Contracts

To Reproduce

I am importing HypercertMinter.sol into my Foundry project

import {HypercertMinter} from "hypercerts-contracts/HypercertMinter.sol";

and running tests

Describe the Bug

When I try to run my tests I get this error:

Error: 
Compiler run failed:
Error (7576): Undeclared identifier.
   --> /Users/james/code/hyperstaker-mono/lib/hypercerts/contracts/contracts/SemiFungible1155.sol:268:13:
    |
268 |         if (_to == address(0) || owners[target] != _account) revert Errors.NotAllowed();
    |             ^^^

The error is happening in the function _mergeTokensUnits function.

I believe this line of code is redundant and can be removed.

Expected Behavior

All variables should be declared and there shouldn't be an error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions