storyprotocol / protocol-periphery-v1

Periphery contract for story protocol, mainnet repo
MIT License
11 stars 13 forks source link

SDK Fails When Re-Attaching License Terms Already Associated with an IP #24

Closed sebsadface closed 1 month ago

sebsadface commented 1 month ago

Description

Currently, the SDK encounters a failure when attempting to attach license terms that are already associated with an IP. This issue occurs within the _registerPILTermsAndAttach method, which does not account for the scenario where the license terms might have been previously attached. As a result, the operation fails instead of returning the existing licenseTermsId.