-
Notifications
You must be signed in to change notification settings - Fork 5
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
Hotfix for partial tree update #73
Conversation
src/client.ts
Outdated
// fetch current birthindex right away | ||
try { | ||
let curIndex = Number((await client.info(token.relayerUrl)).deltaIndex); | ||
const OUTPLUSONE = CONSTANTS.OUT + 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you define OUTPLUSONE twice here and at the line 1387. Should we move its definition to the section (lines 27-38) where all constant are defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, make sense. Moved in 46fc276
src/client.ts
Outdated
// set -1 to use the latest index (create _NEW_ account) | ||
birthindex: number | undefined; | ||
// Account birthday [moved to Token object] | ||
//birthindex: number | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is no need to leave it in the code. Git remembers everything :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. aecdcd2
This merge contains the following set of changes: - Hotfix for getting partial tree (#73)
Here is hotfixes for the client library for errors discovered during latest testing