I have a complex smart contract which I want to deploy in test net (then main net).

When I deploy the contract in rinkeby using remix (enabled optimization) It only cost round 3 millions gas.

but When I use truffle to deploy it in rinkeby (also enabled optimization), It takes way more gas for that smart contract (around 5.2 millions).

I am talking about gas used to deploy contract. not gas sent by truffle.

If truffle naturally takes more gas to deploy contract, what is the reason people use it to deploy contracts?

1 Answer 1


Btw you can now open a ticket with truffle support: https://www.trufflesuite.com/community https://trufflesuite.zendesk.com/hc/en-us/requests/new

  • so no one ever had this problem before?
    – Amin
    Commented Feb 3, 2021 at 8:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.