Skip to content

Commit

Permalink
BuiltinProgram::new_mock: use max_call_depth=64
Browse files Browse the repository at this point in the history
Matches the value used (and now asserted) by the validator.
  • Loading branch information
alessandrod committed May 16, 2024
1 parent 0270240 commit fee48f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ impl<C: ContextObject> BuiltinProgram<C> {
/// Constructs a mock loader built-in program
pub fn new_mock() -> Self {
Self {
config: Some(Box::default()),
config: Some(Box::new(Config {
max_call_depth: 64,
..Config::default()
})),
functions: FunctionRegistry::default(),
}
}
Expand Down

0 comments on commit fee48f8

Please sign in to comment.