2

We are reaching an out-of-gas error in one of our Ink contracts and are interested to investigate the gas used throughout the execution. Is there a way to query for the gas consumed throughout the execution of a contract or for a specific method?

1 Answer 1

3

I am not aware of some gas used function, but I would suggest using ink_env::gas_left function to see how much gas is left in between the calls and then analyze.

Your Answer

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

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