UNPKG

ganache-core

Version:

[![npm Version](https://img.shields.io/npm/v/ganache-core.svg)](https://www.npmjs.com/package/ganache-core) [![npm Downloads](https://img.shields.io/npm/dm/ganache-core.svg)](https://www.npmjs.com/package/ganache-core) [![Build Status](https://travis-ci.o

15 lines (11 loc) 464 B
var inherits = require("util").inherits; // raised when the transaction is rejected prior to running it in the EVM. function TXRejectedError(message) { // Why not just Error.apply(this, [message])? See // https://gist.github.com/justmoon/15511f92e5216fa2624b#anti-patterns Error.captureStackTrace(this, this.constructor); this.name = this.constructor.name; this.message = message; } inherits(TXRejectedError, Error); module.exports = TXRejectedError;