diff --git a/src/compiler/evm_frontend/evm_imported.cpp b/src/compiler/evm_frontend/evm_imported.cpp index 9009ae006..d85ce2d40 100644 --- a/src/compiler/evm_frontend/evm_imported.cpp +++ b/src/compiler/evm_frontend/evm_imported.cpp @@ -878,11 +878,6 @@ static uint64_t evmHandleCallInternal(zen::runtime::EVMInstance *Instance, return 0; } - if (CurrentMsg->depth >= zen::evm::MAXSTACK) { - Instance->setReturnData({}); - return 0; - } - bool HasEnoughBalance = true; if (TransfersValue) { const auto CallerBalance = Module->Host->get_balance(CurrentMsg->recipient); diff --git a/tests/evmone_unittests/EVMOneMultipassUnitTestsRunList.txt b/tests/evmone_unittests/EVMOneMultipassUnitTestsRunList.txt index d53866467..906031d24 100644 --- a/tests/evmone_unittests/EVMOneMultipassUnitTestsRunList.txt +++ b/tests/evmone_unittests/EVMOneMultipassUnitTestsRunList.txt @@ -180,3 +180,5 @@ multi_vm/evm.swapn_undefined/external_vm multi_vm/evm.undefined/external_vm multi_vm/evm.undefined_instruction_analysis_overflow/external_vm multi_vm/evm.undefined_instruction_block_cost_negative/external_vm +multi_vm/evm.call_oog_after_depth_check/external_vm +multi_vm/evm.delegatecall_oog_depth_limit/external_vm