I have 7 smart contracts to deploy on the Ropsten network.
I am using truffle-hdwallet-provider and below is the content of my truffle.js file:
module.exports = {
solc: {
optimizer: {
enabled: true,
runs: 200
}
},
networks: {
ropsten: {
provider: function() {
return new HDWalletProvider(
process.env.MNENONIC,
`https://ropsten.infura.io/v3/${process.env.INFURA_API_KEY}`
);
},
gasPrice: 250000000000,
network_id: 3
}
}
};
Then I run the following command:
truffle migrate --network ropsten
but I get the following response:
Error encountered, bailing. Network state unknown. Review successful transactions manually.insufficient funds for gas * price + value
Fine, it stated I have insufficient fund and my fund was 1.509 Ether at the time. So can I assume the cost to deploy all my contracts is more than 1.509 Ether (that's more than USD163!)?
Appreciate if someone can guide me.