Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolve #683
There are two tests, one for internal recursive calls and one for external calls.
According to https://docs.soliditylang.org/en/v0.8.15/control-structures.html#internal-function-calls, the ethereum actually have a limitation of 1024 for internal recursive calls. our limit seems higher than that, so we use 1024 for test.
For external calls, our contract has a much lower limit than ethereum. The test use 11 as the input, which is the current limit.