Skip to content

Instantly share code, notes, and snippets.

@DavidVotrubec
Last active October 15, 2018 12:36
Show Gist options
  • Save DavidVotrubec/e295fe85da57855d878fc7eed8c03f8b to your computer and use it in GitHub Desktop.
Save DavidVotrubec/e295fe85da57855d878fc7eed8c03f8b to your computer and use it in GitHub Desktop.
Truffle console is better than truffle develop
truffle console --network ganache_cli
The full procedure is like this
- make sure that ganache_cli is running and truffle.js is configured properly
- truffle networks --clean // to reset old garbage
- truffle console --network ganache_cli
- migrate
- interact with your deploys smart contract via JS
- MySmartContract.deployed().then(function(instance) {... call your contract's instance methods ;});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment