美文网首页BlockChain
Install and configure truffle

Install and configure truffle

作者: YichengYe | 来源:发表于2018-07-03 21:29 被阅读0次

Installation

run npm init // make a new npm project
run npm i truffle
sudo cp ./node_modules/.bin/truffle /usr/bin // copy truffle to /usr/bin/
sudo cp ./node_modules /usr/bin //copy node_modules to /usr/bin/

truffle.js

module.exports = {
  networks: {
    development: {
      host: "localhost",
      port: 7545,
      network_id: "5777", // use * to match any network id
      from: "0x627306090abaB3A6e1400e9345bC60c78a8BEf57",
      gas: 6000000
    }
  }
};

相关文章

网友评论

    本文标题:Install and configure truffle

    本文链接:https://www.haomeiwen.com/subject/crzjuftx.html