Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(derived-leaves.ts): remove unused empty() and toJSON() metho…
…ds from createMayUseToken feat(derived-leaves.ts): add check() method to createMayUseToken to validate that parentsOwnToken and inheritFromParent are not both true, improving data integrity and catching potential errors early The empty() and toJSON() methods were removed because they were not being used in the codebase. The new check() method was added to validate the integrity of the MayUseToken data structure by ensuring that parentsOwnToken and inheritFromParent are not both true at the same time, which would be an invalid state. This check helps catch potential errors early and improves the overall reliability and maintainability of the code.
- Loading branch information