Closed positonic closed 4 months ago
It looks like you're trying to directly import as a foundry lib but importing from the wrong path.
hypercerts/contracts/src/protocol/
is the folder containing the source code.
You can see the _mergeTokenUnits
is consistent here: https://github.com/hypercerts-org/hypercerts/blob/7671d06762c929bc2890a31e5dc392f8a30065c6/contracts/src/protocol/SemiFungible1155.sol#L370
It's working with the contracts in hypercerts/contracts/src/protocol/
Thanks!
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:
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