0

Sanity check question: Can a FAILWITH error be caused by improper (too low) values of gas_limit or storage_limit? I'm guessing the answer is "no", but I'm debugging and stranger things have certainly happened.

Thanks!

2
  • 1
    The answer is no. gas_limit and storage_limit are validated by separated filters. Aug 5 at 21:32
  • Thanks! If you turn this into an answer I'll accept it. Aug 6 at 4:35
2

The only thing that can trigger a FAILWITH error is the execution of the FAILWITH instruction. You might however get a gas exhaustion error during the interpretation of a FAILWITH instruction, this can happen for example if the value that is thrown by FAILWITH is large because it will be costly to serialize.

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.