eosnetworkfoundation / eos-evm-contract

EOS EVM
MIT License
22 stars 14 forks source link

Add simple stack limit tests. #766

Closed yarkinwho closed 1 week ago

yarkinwho commented 3 weeks ago

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.

spoonincode commented 3 weeks ago

With AntelopeIO/spring#628 now merged the original test should operate as expected now