-
Notifications
You must be signed in to change notification settings - Fork 79
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
Added custody light README. #1327
Conversation
ocean_lib/ocean/ocean_assets.py
Outdated
@@ -342,8 +343,17 @@ def create_bundled( | |||
name = metadata["name"] | |||
template_index = 2 if use_enterprise else 1 | |||
data_nft_args = DataNFTArguments(name, name) | |||
datatoken_args = DatatokenArguments( | |||
f"{name}: DT1", files=files, template_index=template_index | |||
datatoken_args = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should assign this previously and simplify.
e.g. dt_args=DatatokenArguments(
f"{name}: DT1", files=files, template_index=template_index
)
if template_index == 2:
dt_args.cap=MAX_UINT256
maybe the init part itself has the exception, but either way this needs to be cleaner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added an assignment before initializing the DatatokenArguments object
Fixes #1300 .
Changes proposed in this PR: