UNPKG

@jhubbardsf/ethers-decode-error

Version:

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

9 lines (8 loc) 196 B
import { ErrorType } from './enums'; import { utils } from 'ethers'; export type DecodedError = { type: ErrorType; error: string; data: string | undefined; args?: utils.Result; };