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
Description
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
Labels
No labels