From c5ecc8f54d21b21bc36f722fe9b240dc75527971 Mon Sep 17 00:00:00 2001 From: jxom Date: Sat, 7 Sep 2024 11:53:46 +1000 Subject: [PATCH] chore: exports --- .changeset/four-papayas-camp.md | 5 +++++ src/index.test.ts | 1 + src/index.ts | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 .changeset/four-papayas-camp.md 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,