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

Add toString() to Asset #172

Merged
merged 1 commit into from
Jul 18, 2019

Conversation

charlie-wasp
Copy link
Contributor

Hi there! 👋

What about overriding Asset.toString() method? I believe it would be useful to return something more meaningful from that. I ended up with code-issuer format and just native for lumens.

What do you think?

P.S. Sorry for the formating mess in a diff, it's prettier in the pre-commit hook 😕

Copy link
Contributor

@abuiles abuiles left a comment

Choose a reason for hiding this comment

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

@charlie-wasp thanks for this PR! I agree the proposed format makes more sense than [object Object] :)

Could you rebase off master and cleanup asset_test.js to include only your change and no the formatting changes?

@charlie-wasp
Copy link
Contributor Author

@abuiles thank you, I'm on it!

@charlie-wasp charlie-wasp force-pushed the feature/asset-to-string branch 2 times, most recently from 9c00d51 to c438985 Compare July 18, 2019 10:02
@charlie-wasp
Copy link
Contributor Author

@abuiles done ✅

Copy link
Contributor

@abuiles abuiles left a comment

Choose a reason for hiding this comment

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

@charlie-wasp thanks! LGTM.

@bartekn @morleyzhi do you have any thoughts about this? otherwise, I think we should merge.

@morleyzhi
Copy link
Contributor

👍

@abuiles abuiles merged commit 5538702 into stellar:master Jul 18, 2019
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