1

Setting a variable on a contract to something and then trying to set it back to the default value will result in Remix failing to estimate gas.

enter image description here

enter image description here

I was debugging a more complex contract and it took me hours to find out the transaction was reverting because of this.

3

0

Your Answer

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

Browse other questions tagged or ask your own question.