Function web3ExtractErrorMessage

  • Function that attempts to read an error message from a etherjs error object to display an appropriate error message

    Parameters

    • e: {
          code?: any;
          data?: {
              code?: any;
              data?: string;
              message?: string;
          };
          message?: string;
      }
      • Optional code?: any
      • Optional data?: {
            code?: any;
            data?: string;
            message?: string;
        }
        • Optional code?: any
        • Optional data?: string
        • Optional message?: string
      • Optional message?: string

    Returns string

    string

Generated using TypeDoc