i'm trying to deploy contracts on private network ganache using ganache application. but it threw an error because of its big size:
"contract x" ran out of gas. Something in the constructor (ex: infinite loop) caused gas estimation to fail. Try:
* Making your contract constructor more efficient
* Setting the gas manually in your config or as a deployment parameter
* Using the solc optimizer settings in 'truffle-config.js'
* Setting a higher network block limit if you are on a
private network or test client (like ganache).
i tried to set a higher gas limit on ganache and changed it to 10000000 but still the same ptoblem.
truffle network config:
networks: {
development: {
host: "127.0.0.1", // Localhost (default: none)
port: 7545,
network_id: "*"
},