Currently, the limit of the call stack is defined as 5.
It is mainly used in the following codes.
|
pub const DYNAMIC_CALL_DEPTH_LIMIT_CNT: usize = 5; |
|
if ctx.dynamic_callstack.len() >= DYNAMIC_CALL_DEPTH_LIMIT_CNT { |
|
return Err(VmError::dynamic_call_depth_over_limitation_err()); |
|
} |
|
if callstack.len() >= DYNAMIC_CALL_DEPTH_LIMIT_CNT { |
|
return Err(VmError::dynamic_call_depth_over_limitation_err()); |
|
}; |
Check callstack limits and fix if necessary.
Currently, the limit of the call stack is defined as 5.
It is mainly used in the following codes.
cosmwasm/packages/vm/src/environment.rs
Line 15 in eda535b
cosmwasm/packages/vm/src/environment.rs
Lines 357 to 359 in eda535b
cosmwasm/packages/vm/src/environment.rs
Lines 383 to 385 in eda535b
Check callstack limits and fix if necessary.