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 ESDTTransferRole on fungible token #26

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Conversation

popenta
Copy link
Collaborator

@popenta popenta commented Apr 15, 2024

Added missing role according to this PR.

@popenta popenta self-assigned this Apr 15, 2024
andreibancioiu
andreibancioiu previously approved these changes Apr 15, 2024
Copy link
Contributor

@andreibancioiu andreibancioiu left a comment

Choose a reason for hiding this comment

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

Just make sure to link the PR to the reported issue, as well.

@@ -283,14 +283,16 @@ def create_transaction_for_setting_special_role_on_fungible_token(
user: IAddress,
token_identifier: str,
add_role_local_mint: bool,
add_role_local_burn: bool
add_role_local_burn: bool,
add_role_esdt_transfer_role: bool
Copy link
Contributor

Choose a reason for hiding this comment

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

Breaking change, but we can live with it (there will be a minor version anyway).

)

assert transaction.data
assert transaction.data.decode() == "setSpecialRole@4652414e4b2d313163653365@1e8a8b6b49de5b7be10aaa158a5a6a4abb4b56cc08f524bb5e6cd5f211ad3e13@45534454526f6c654c6f63616c4d696e74@45534454526f6c654c6f63616c4275726e@455344545472616e73666572526f6c65"
Copy link
Contributor

Choose a reason for hiding this comment

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

i think it might be cleaner to have this expected value decomposed, to be able to see more easily that there is also ESDTTransferRole encoded

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we can evaluate to have this pattern in all tests

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice idea!

@popenta popenta merged commit 3b490fd into main Apr 16, 2024
6 checks passed
@popenta popenta deleted the add-missing-role-for-esdt branch April 16, 2024 08: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.

3 participants