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,