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

Replace FromJSON instance for EntryId to fix failing test #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ericpashman
Copy link
Collaborator

This replaces the derived FromJSON instance for EntryId with a hand-written instance that is exactly parallel to the existing instance for TradeId, which is also a newtype over Word64. This fixes the failing getUSDAccountLedger test; see #18.

I don't know when or why this test started to fail. It seems odd that the instances for EntryId and TradeId were different. I believe Coinbase's JSON has used strings for everything, including numbers, as long as I've been paying attention.

We can merge this now or wait to see whether there's anything we can do to fix the rest of the tests, whatever you think makes sense.

@ericpashman ericpashman requested a review from dimitri-xyz May 20, 2020 01:39
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.

1 participant