Last active
October 15, 2018 12:36
-
-
Save DavidVotrubec/e295fe85da57855d878fc7eed8c03f8b to your computer and use it in GitHub Desktop.
Truffle console is better than truffle develop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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