Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deriv): use batch permissions for derivative registration #155

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

sebsadface
Copy link
Member

@sebsadface sebsadface commented Dec 20, 2024

Description

This PR refactors the registerIpAndMakeDerivative and registerIpAndMakeDerivativeWithLicenseTokens functions in DerivativeWorkflows to leverage setBatchPermissions instead of setting permissions one at a time. With this change, both functions now require only a single signature to grant DerivativeWorkflows the necessary permissions to interact with the core protocol on behalf of the IP owner. This enhancement reduces overhead and simplifies the authorization process.

Test Plan

  • Updated tests to reflect the use of setBatchPermissions.
  • all tests pass locally

Related Issue

@sebsadface sebsadface merged commit f681c28 into storyprotocol:main Dec 21, 2024
3 checks passed
@sebsadface sebsadface deleted the derv-sig-sim branch January 9, 2025 19:42
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.

Simplify Signature Requirements for SPG Functions
2 participants