lotus/itests/contracts/RecCall.sol

17 lines
338 B
Solidity
Raw Normal View History

2023-01-17 16:38:40 +00:00
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
contract StackRecCall {
function exec1(uint256 n, uint256 m, uint256 r) public payable {
if(n == 0) {
if(r > 0) {
StackRecCall(address(this)).exec1(m, m, r-1);
}
return;
}
exec1(n-1, m, r);
}
}