From fee48f801342e70522cd3add1168835d59ad8eb4 Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Thu, 16 May 2024 14:40:46 +0000 Subject: [PATCH] BuiltinProgram::new_mock: use max_call_depth=64 Matches the value used (and now asserted) by the validator. --- src/program.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/program.rs b/src/program.rs index 64752df3..a63b078b 100644 --- a/src/program.rs +++ b/src/program.rs @@ -246,7 +246,10 @@ impl BuiltinProgram { /// 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(), } }