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

fix: lastInsertedDeal wrong field #40

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

NikolasHaimerl
Copy link
Contributor

This PR fixes the issue of calling the wrong field name for the last inserted deal.
A deal contains the field activated_at_epoch while the BlockEvent contains the field height.

@NikolasHaimerl NikolasHaimerl marked this pull request as ready for review January 28, 2025 14:58
Copy link
Member

@bajtos bajtos left a comment

Choose a reason for hiding this comment

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

Nice catch!

I added b6cf42e to fix the typings in such way that TypeScript would be able to detect this bug.

I highly recommend you to fix all other places using TypeBox T.Object values to use Static<typeof T> instead. But that's out of the scope of this pull request.

@NikolasHaimerl
Copy link
Contributor Author

Nice catch!

I added b6cf42e to fix the typings in such way that TypeScript would be able to detect this bug.

I highly recommend you to fix all other places using TypeBox T.Object values to use Static<typeof T> instead. But that's out of the scope of this pull request.

I added an issue for this.

@NikolasHaimerl NikolasHaimerl merged commit ef6c356 into main Jan 28, 2025
8 checks passed
@NikolasHaimerl NikolasHaimerl deleted the nhaimerl-fix-lastInsertedDeal branch January 28, 2025 15:32
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.

2 participants