Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Conversation

@fabioberger
Copy link
Contributor

Fixes: #178

Add custom MarshalJSON method for OrderEvent so that fillableTakerAssetAmount is sent over the wire as a stringified amount and never in scientific notation.

…setAmount` is sent over the wire as a stringified amount and never in scientific notation
@fabioberger fabioberger requested a review from albrow June 19, 2019 04:00
@albrow
Copy link
Contributor

albrow commented Jun 19, 2019

@fabio what do you think about implementing our own wrapper type around big.Int as described here? If big.Int is the only type causing us trouble when marshaling to JSON this could save us some lines of code. I'm also okay with merging this for now and creating a separate issue.

@fabioberger
Copy link
Contributor Author

That is a great idea. I love it. I'll create an issue for doing this refactor and will tackle it in a subsequent PR.

@fabioberger fabioberger merged commit c2e0dbd into master Jun 19, 2019
@fabioberger fabioberger deleted the fix/fillableTakerAssetAmountAsString branch June 19, 2019 20:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mesh: fillableTakerAssetAmount is a number

3 participants