UNPKG

@ordao/ethers-decode-error

Version:

Decode ethers.js smart contract errors into human-readable messages

8 lines (7 loc) 211 B
import { ErrorType } from './common/enums'; import { ErrorDescription } from "ethers"; export type DecodedError = ErrorDescription & { type: ErrorType; reason: string | null; data: string | null; };