Skip to content

fix(test): add test case to total license token limit hook#229

Merged
sebsadface merged 1 commit intostoryprotocol:mainfrom
romain-mg:test-hooks
Jun 24, 2025
Merged

fix(test): add test case to total license token limit hook#229
sebsadface merged 1 commit intostoryprotocol:mainfrom
romain-mg:test-hooks

Conversation

@romain-mg
Copy link

@romain-mg romain-mg commented Jun 23, 2025

Description

This PR adds a new test function to improve test coverage for the totalLicenseTokenLimit hook, ensuring its correct behavior during derivative registration.

It also includes a couple of linter styling changes

Test added

test_TotalLicenseTokenLimitHook_beforeRegisterDerivative_incrementTotalLicenseTokenSupply()
Purpose: Validates that the beforeRegisterDerivative() hook correctly increments the total license token supply when a new derivative is registered.

Coverage improvement

Before:
Screenshot 2025-06-23 at 11 35 09 AM
After:
Screenshot 2025-06-23 at 11 33 47 AM

@romain-mg romain-mg changed the title fix(test): add test case to totel license token limit hook fix(test): add test case to total license token limit hook Jun 23, 2025
@sebsadface sebsadface merged commit ca7211c into storyprotocol:main Jun 24, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants