I deployed my smart contracts to Rinkeby. I made my gas limit 3000000 in truffle.js like so:
rinkeby: {
host: "localhost",
port: 8545,
network_id: 4,
gas: 3000000
}
On Etherscan, it shows my gas limit is indeed 3000000. But when I try to use some functions, I exceed the gas limit. On etherscan it shows my gas limit is only 9000 and I exceeded it
Gas Limit: 90000
Gas Used By Transaction:90000 (100%)
As a result, the transaciton fails. Why is this the case?