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

Bugfix for fetching assets without a unit name #37

Merged
merged 1 commit into from
Nov 16, 2022
Merged

Bugfix for fetching assets without a unit name #37

merged 1 commit into from
Nov 16, 2022

Conversation

ipaleka
Copy link
Contributor

@ipaleka ipaleka commented Jun 22, 2022

Algorand doesn't force that asset has to have a unit and/or unit name, so SDK raises KeyError for the assets like this one.

Copy link
Contributor

@gokselcoban gokselcoban left a comment

Choose a reason for hiding this comment

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

Thank you for reporting this issue and PR.

It looks good to me.

@fergalwalsh Do you have any concerns about using '' empty string? I asked this because the Asset data class uses None as default.

@fergalwalsh
Copy link
Contributor

I think it would be good to be consistent. Keeping None as the default seems the safest.
As we are very late following up on this I think we can merge the PR as is and then make the change without bothering @ipaleka further.

@gokselcoban gokselcoban self-assigned this Nov 15, 2022
@gokselcoban
Copy link
Contributor

Thank you!

@gokselcoban gokselcoban merged commit cc65260 into tinymanorg:main Nov 16, 2022
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