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

refactor: not breaking note processing on missing hash and nullifier func #1364

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

benesjan
Copy link
Contributor

@benesjan benesjan commented Aug 2, 2023

Description

Fixes #1303
Fixes formatting

Checklist:

  • I have reviewed my diff in github, line by line.
  • Every change is related to the PR description.
  • I have linked this pull request to the issue(s) that it resolves.
  • There are no unexpected formatting changes, superfluous debug logs, or commented-out code.
  • The branch has been merged or rebased against the head of its merge target.
  • I'm happy for the PR to be merged at the reviewer's next convenience.

@benesjan benesjan marked this pull request as draft August 2, 2023 09:43
@benesjan benesjan marked this pull request as ready for review August 2, 2023 09:56
@benesjan benesjan enabled auto-merge (squash) August 2, 2023 10:00
"exclude": [
"src/**/*.test.ts"
]
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch

nullifier,
publicKey: this.publicKey,
});
userPertainingTxIndices.add(indexOfTxInABlock);
Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpick: It would be nice have an if statement to catch the error cases ahead of time with custom error messages. The try and catch is still good though IMO.

Copy link
Collaborator

@ludamad ludamad left a comment

Choose a reason for hiding this comment

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

LGTM

@benesjan benesjan merged commit 861db2a into master Aug 2, 2023
@benesjan benesjan deleted the janb/alert-on-missing-comp-hash-func branch August 2, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Alert when create_hash_and_nullifier function is missing
2 participants