1 Star 0 Fork 13

rsl-learn/BlockChainProductTraceability

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
truffle.js 897 Bytes
一键复制 编辑 原始数据 按行查看 历史
wanglei 提交于 2018-05-14 17:01 . finsh
// Allows us to use ES6 in our migrations and tests.
/*var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = "turn execute engage antique current mention dial main elegant miracle crazy monkey";*/
require('babel-register')
module.exports = {
networks: {
development: {
host: "192.168.3.142",
port: 8545,
network_id: 3 // match any network
},
live: {
host: "https://mainnet.infura.io/232LYj2MB69CTPBS20At", // Random IP for example purposes (do not use)
//port: 8545,
network_id: "*", // Ethereum public network
// optional config values
// gas
// gasPrice
// from - default address to use for any transaction Truffle makes during migrations
}
}
}
/* networks: {
ropsten: {
provider: function() {
return new HDWalletProvider(mnemonic,"https://mainnet.infura.io/232LYj2MB69CTPBS20At")
},
network_id: 3
}
}
};*/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/rsl-learn/BlockChainProductTraceability.git
[email protected]:rsl-learn/BlockChainProductTraceability.git
rsl-learn
BlockChainProductTraceability
BlockChainProductTraceability
master

搜索帮助