Skip to content

Commit

Permalink
callexecutionerror
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Jan 9, 2024
1 parent 4111c18 commit 5e1f6ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ensjs/src/utils/checkSafeUniversalResolverData.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
CallExecutionError,
decodeErrorResult,
getContractError,
type BaseError,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5e1f6ca

Please sign in to comment.