I am writing a ICO contract in truffle using openzeppelin
I used the below code in the truffle.js and I am trying to launch in mainnet. When I tried this I could see that the transaction is using the 100Gwei which is too high.
Question :
- How much is the minimum gas and gasPrice for an ICO using open Zeppelin
- If we are not going to give the gasPrice, will it set to 100 Gwei as default ?
Please let me know the best values for these to parameters "gasPrice :" and "gas:"
The below transaction hash which showing the Gas Price: 0.0000001 Ether (100 Gwei)
https://etherscan.io/tx/0xcb401703160f61fe376ba1d14c1b9cbabaa7388ee9b12b3e46c9ccd7cb48ac1d
truffle.js
module.exports = {
// See http://truffleframework.com/docs/advanced/configuration // to customize your Truffle configuration!
networks: {
mainnet: {
provider: infuraProvider('mainnet'),
gas: 400000,
network_id: '1'
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
};