This allows calling one function with parameters to send multiple amounts to multiple addresses
-
Install Truffle globally.
npm install -g truffle
-
Install the necessary dependencies.
npm install
-
Run the development console.
truffle develop
-
Compile and migrate the smart contracts. Note inside the development console we don't preface commands with
truffle
.compile migrate
-
Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.
// If inside the development console. test // If outside the development console.. truffle test
-
How do I use this with the EthereumJS TestRPC?
It's as easy as modifying the config file! Check out our documentation on adding network configurations. Depending on the port you're using, you'll also need to update line 34 of
src/util/web3/getWeb3.js
. -
Why is there both a truffle.js file and a truffle-config.js file?
truffle-config.js
is a copy oftruffle.js
for compatibility with Windows development environments. Feel free to remove it if it's irrelevant to your platform. -
Where can I find more documentation?
Check out Truffle
- @Alonski (Alon Bukai)
- @Quazia (Arthur Lunn)
- @Lastperson (Oleksii Matiiasevych)
- @GriffGreen (Griff Green)