2

I am trying to figure out what part of a complicated smart contract transaction is responsible for the cost. I was wondering if there is already a tool for that. Ideally it would spit out you are spending this much gas on this kind of opcode or storage op etc. It would be great for writing optimized computation "heavy" smart contracts.

0

On Remix, you can view gas estimates by clicking on your contract on the right side, followed by clicking "Details".

From there, you will get many details about your contract, including the gas estimate for each function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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