0

If I have a view function and it runs a loop to get a large set of data, is it possible to revert and be out of gas, or no matter how big the loop is will it still call it? This function will not be called internally.

1 Answer 1

0

Yes. Usually public nodes limit view functions to the block gas limit. To protect servers from denial of service attacks.

You could run your own server and set a very high gas limit.

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.