Skip to content

Commit 804a315

Browse files
committed
refactor: update parameter types in link_derivative method to use Address type for child_ip_id and parent_ip_ids
1 parent 06ca833 commit 804a315

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/story_protocol_python_sdk/resources/IPAsset.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ def register_derivative_with_license_tokens(
400400

401401
def link_derivative(
402402
self,
403-
child_ip_id: str,
404-
parent_ip_ids: list[str] | None = None,
403+
child_ip_id: Address,
404+
parent_ip_ids: list[Address] | None = None,
405405
license_terms_ids: list[int] | None = None,
406406
license_token_ids: list[int] | None = None,
407407
max_minting_fee: int = 0,
@@ -417,10 +417,10 @@ def link_derivative(
417417
- If `parent_ip_ids` is provided, calls `registerDerivative`(contract method)
418418
- If `license_token_ids` is provided, calls `registerDerivativeWithLicenseTokens`(contract method)
419419
420-
:param child_ip_id str: The derivative IP ID.
421-
:param parent_ip_ids list[str]: [Optional] The parent IP IDs. Required if using license terms.
422-
:param license_terms_ids list[int]: [Optional] The IDs of the license terms that the parent IP supports. Required if using license terms.
423-
:param license_token_ids list[int]: [Optional] The IDs of the license tokens. Required if linking with license tokens.
420+
:param child_ip_id Address: The derivative IP ID.
421+
:param parent_ip_ids list[Address]: [Optional] The parent IP IDs. Required if using license terms.
422+
:param license_terms_ids list[int]: [Optional] The IDs of the license terms that the parent IP supports. Required if `parent_ip_ids` is provided.
423+
:param license_token_ids list[int]: [Optional] The IDs of the license tokens.
424424
:param max_minting_fee int: [Optional] The maximum minting fee that the caller is willing to pay.
425425
if set to 0 then no limit. (default: 0) Only used with `parent_ip_ids`.
426426
:param max_rts int: [Optional] The maximum number of royalty tokens that can be distributed

0 commit comments

Comments
 (0)