From 5e1f6ca74350e05cec0f598a6ed162a16bc68fdc Mon Sep 17 00:00:00 2001 From: tate Date: Wed, 10 Jan 2024 10:34:45 +1100 Subject: [PATCH] callexecutionerror --- packages/ensjs/src/utils/checkSafeUniversalResolverData.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ensjs/src/utils/checkSafeUniversalResolverData.ts b/packages/ensjs/src/utils/checkSafeUniversalResolverData.ts index e25e20ab..7f2692df 100644 --- a/packages/ensjs/src/utils/checkSafeUniversalResolverData.ts +++ b/packages/ensjs/src/utils/checkSafeUniversalResolverData.ts @@ -1,4 +1,5 @@ import { + CallExecutionError, decodeErrorResult, getContractError, type BaseError, @@ -47,6 +48,7 @@ export const checkSafeUniversalResolverData = ( } catch (error) {} } } + if (data instanceof CallExecutionError) throw data throw getContractError(data, { abi, args: typeof args === 'function' ? args() : args,