diff --git a/.changeset/four-papayas-camp.md b/.changeset/four-papayas-camp.md new file mode 100644 index 0000000000..ee4b1150da --- /dev/null +++ b/.changeset/four-papayas-camp.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added extra error handling in unit parsing. diff --git a/src/index.test.ts b/src/index.test.ts index 584b24c187..73f7cd707c 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -219,6 +219,7 @@ test('exports', () => { "EnsAvatarUriResolutionError", "EnsAvatarInvalidNftUriError", "EnsAvatarUnsupportedNamespaceError", + "InvalidDecimalNumberError", "EstimateGasExecutionError", "ExecutionRevertedError", "FeeCapTooHighError", diff --git a/src/index.ts b/src/index.ts index 51816b3f27..52279d6230 100644 --- a/src/index.ts +++ b/src/index.ts @@ -825,6 +825,10 @@ export { type EnsAvatarUnsupportedNamespaceErrorType, type EnsAvatarUriResolutionErrorType, } from './errors/ens.js' +export { + type InvalidDecimalNumberErrorType, + InvalidDecimalNumberError, +} from './errors/unit.js' export { EstimateGasExecutionError, type EstimateGasExecutionErrorType,