Difference between revisions of "Setting up Truffle"
Jump to navigation
Jump to search
(Created page with "=Setting up Truffle for your project= # go into your project Directory truffle init ''' You need to create your smart contracts in the ''contracts folder'' '''") |
|||
Line 5: | Line 5: | ||
''' You need to create your smart contracts in the ''contracts folder'' ''' | ''' You need to create your smart contracts in the ''contracts folder'' ''' | ||
''' Then you need to create a file int eh migrations folder to process your contract''' | |||
Filename: 2_deploy_contracts.js | |||
var Greetings = artifacts.require("./Greetings.sol"); | |||
module.exports = function(deployer){ | |||
deployer.deploy(Greetings); | |||
}; |
Revision as of 18:57, 11 March 2018
Setting up Truffle for your project
- go into your project Directory
truffle init
You need to create your smart contracts in the contracts folder Then you need to create a file int eh migrations folder to process your contract Filename: 2_deploy_contracts.js
var Greetings = artifacts.require("./Greetings.sol"); module.exports = function(deployer){ deployer.deploy(Greetings); };