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: use nullish coalescing (to allow version and other values to be 0 or "") #88

Merged
merged 2 commits into from
Feb 15, 2025

Conversation

coolaj86
Copy link
Member

If the version is set to 0, it will be overwritten with the default (3). That turns out to not be right.

version = txInfo.version ?? CURRENT_VERSION.

I also updated other semantically incorrect uses of || - even when the result doesn't change - to distinguish between boolean logical operations and default assignment.

@coolaj86 coolaj86 merged commit cdb5550 into main Feb 15, 2025
5 checks passed
@coolaj86 coolaj86 deleted the fix-allow-version-0 branch February 15, 2025 02:35
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