我正在尝试将 m 个智能合约添加到 kovan 测试网络,但这需要很长时间
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*",
},
kovan: {
provider: function (){
return new HDWalletProvider(
//private key
privateKeys.split(','),
`https://kovan.infura.io/v3/${process.env.INFURA_API_KEY}`
//url to an ethereum node
)
},
gas: 5000000,
gasPrice: 50,
network_id: 42,
}
},
contracts_build_directory: './src/abis',
contracts_directory: './src/contracts',
// Set default mocha options here, use special reporters etc.
mocha: {
// timeout: 100000
},
// Configure your compilers
compilers: {
solc: {
version: "0.5.0", // Fetch exact version from solc-bin (default: truffle's version)
// docker: true, // Use "0.5.1" you've installed locally with docker (default: false)
// settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200
},
// evmVersion: "byzantium"
// }
},
},
};
当我运行 truffle migrate --network kovan 首先它运行我的智能合约,然后它说开始迁移并继续运行,在写这个问题时,秒数是 600 并且在块 84 上显示,这是什么意思和如何完成智能合约的部署