sol-trace

Trace runtime failures for solidity

Usage no npm install needed!

<script type="module">
  import solTrace from 'https://cdn.skypack.dev/sol-trace';
</script>

README

sol-trace

Trace runtime failures for solidity

Inspired by 0x-monorepo https://github.com/0xProject/0x-monorepo/pull/705

Installation

$ npm install --save sol-trace # or yarn add sol-trace

Usage

Add following code in your truffle test cases:

import { injectInTruffle } from "sol-trace";
injectInTruffle(web3, artifacts);

if your node_modules path need correct you do bellow:

export MODULE_RELATIVE_PATH=../ && truffle test

Demo