Skip to content

A Truffle plugin to troubleshoot your smart contract problems

License

Notifications You must be signed in to change notification settings

IoBuilders/truffle-troubleshoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

truffle-troubleshoot

npm

This Truffle plugin helps you troubleshoot problems during interaction with your smart contracts.

Installation

(1) Install the plugin with npm

npm install truffle-troubleshoot

(2) Add the plugin to your truffle.js or truffle-config.js file

module.exports = {
  /* ... rest of truffle-config */

  plugins: [
    'truffle-troubleshoot'
  ]
}

Usages

The plugin consists of several commands, which are listed below:

revert-reason

This command prints the revert reason of a failed transaction. It requires the transaction hash as single argument.

truffle run troubleshoot revert-reason 0x1234....

About

A Truffle plugin to troubleshoot your smart contract problems

Resources

License

Stars

Watchers

Forks

Packages

No packages published