Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Correctly check for non-integer credentials #5588

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

RyanCavanaugh
Copy link
Contributor

Values in JavaScript are never equal to NaN, so this check wasn't doing anything. Found with TypeScript 4.9.

Values in JavaScript are never equal to `NaN`, so this check wasn't doing anything
Copy link
Contributor

@haltman-at haltman-at left a comment

Choose a reason for hiding this comment

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

Yikes, thanks, good catch!

Copy link
Member

@cds-amal cds-amal left a comment

Choose a reason for hiding this comment

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

Oops, took me a second! Good catch. Thanks!

@cds-amal cds-amal merged commit f52ccec into trufflesuite:develop Oct 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants