From 6343d4ccd24b69b4cd71dc4134372e8601fc9cc1 Mon Sep 17 00:00:00 2001 From: TimothyBanks Date: Thu, 17 Sep 2026 12:58:12 -0400 Subject: [PATCH] fix: Explicity use CompilationMode::LazyTranslation --- crates/xrpl-wasm-vm/src/vm.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/xrpl-wasm-vm/src/vm.rs b/crates/xrpl-wasm-vm/src/vm.rs index 3b2a5f5524..d35032f1a6 100644 --- a/crates/xrpl-wasm-vm/src/vm.rs +++ b/crates/xrpl-wasm-vm/src/vm.rs @@ -1,8 +1,8 @@ use std::cell::Cell; use std::fmt; use wasmi::{ - Config, Engine, Export, Linker, Memory, Module, Store, StoreLimits, StoreLimitsBuilder, - TrapCode, + CompilationMode, Config, Engine, Export, Linker, Memory, Module, Store, StoreLimits, + StoreLimitsBuilder, TrapCode, }; use xrpl_host_functions::HostFunctions; @@ -262,6 +262,7 @@ pub(crate) fn wasm_engine() -> Engine { // config.wasm_memory64(false); config.wasm_wide_arithmetic(false); config.allow_start_fn(false); + config.compilation_mode(CompilationMode::LazyTranslation); Engine::new(&config) }