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

Added denominator argument for functions registerDynamic and register… #124

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

elvisboghiu
Copy link
Contributor

@elvisboghiu elvisboghiu requested a review from popenta October 25, 2024 07:42
Copy link

github-actions bot commented Oct 25, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  multiversx_sdk/core/transactions_factories
  token_management_transactions_factory.py
Project Total  

This report was generated by python-coverage-comment-action

danielailie
danielailie previously approved these changes Oct 25, 2024
Comment on lines 893 to -896
def create_transaction_for_changing_token_to_dynamic(self,
sender: IAddress,
token_identifier: str) -> Transaction:
parts: List[str] = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can also add an additional check here, we cannot change nft token to dynamic

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are not able to know token type at this point, but at least add a comment here for this

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is right but we do not have token type as a parameter here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added docstring

danielailie
danielailie previously approved these changes Oct 25, 2024
@@ -911,6 +912,7 @@ def create_transaction_for_changing_token_to_dynamic(self,
def create_transaction_for_updating_token_id(self,
sender: IAddress,
token_identifier: str) -> Transaction:
"""The following token types cannot be changed to dynamic: FungibleESDT, NonFungibleESDT, NonFungibleESDTv2"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not correct here for updateTokenID

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is wrong in docs, there is already an open PR for this https://github.com/multiversx/mx-docs/pull/1003/files

@popenta popenta merged commit ddd9683 into main Oct 28, 2024
7 checks passed
@popenta popenta deleted the update_token_management_transactions_factory branch October 28, 2024 14:30
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.

4 participants