You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reading the docs it seems like there isn't much information on error parsing using Viem,
There is a function getTransactionError which could be useful for my needs, why is this not exported? I come across a type error which is getting in the way of using it,
Failed to compile.
./client/utils/errors/getExecuteErrorMessage.ts:6:0
Module not found: Package path ./utils/errors/getTransactionError is not exported from package /Users/kami/Dev/vertex_protocol/vertex-web-monorepo/node_modules/viem (see exports field in /Users/kami/Dev/vertex_protocol/vertex-web-monorepo/node_modules/viem/package.json)
4 | } from '@vertex-protocol/client'; // Takes an error and returns some debuggable-ish text
5 | // import type { Account } from 'viem/accounts/types';
> 6 | import { getTransactionError } from 'viem/utils/errors/getTransactionError';
7 |
8 | // Takes an error and returns some debuggable-ish text
9 | export function getExecuteErrorMessage(err?: any): string {
Alternatively, could I import these into app and custom build my own error parsing function?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After reading the docs it seems like there isn't much information on error parsing using Viem,
There is a function
getTransactionError
which could be useful for my needs, why is this not exported? I come across a type error which is getting in the way of using it,Alternatively, could I import these into app and custom build my own error parsing function?
Beta Was this translation helpful? Give feedback.
All reactions