Skip to content

Value Errors

Value.InvalidDecimalNumberError

Thrown when a value is not a valid decimal number.

Examples

import { Value } from 'ox'
 
Value.fromEther('123.456.789')
Value.InvalidDecimalNumberError: Value `123.456.789` is not a valid decimal number.

Source: src/core/Value.ts