Skip to content

Commit

Permalink
Accepting that nodeos returns NaN for floats (#78)
Browse files Browse the repository at this point in the history
* Accepting that nodeos returns bogus numbers

* Removed NaN and isFinite checks
  • Loading branch information
aaroncox authored Aug 18, 2023
1 parent d89c989 commit 42b5a30
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/chain/float.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ class Float implements ABISerializableObject {
value: number

constructor(value: number) {
if (!Number.isFinite(value)) {
throw new Error('Invalid number')
}
this.value = value
}

Expand Down

0 comments on commit 42b5a30

Please sign in to comment.