From d749a82e4b15ad40543f3ab3a84da231b76846ca Mon Sep 17 00:00:00 2001 From: Sergey Kuznetsov Date: Fri, 21 Aug 2026 15:06:03 +0100 Subject: [PATCH] Fix clang-tidy and formatting --- .cspell.config.yaml | 1 + crates/xrpl-wasm-vm/tests/preflight.rs | 4 +++- src/libxrpl/tx/wasm/HostContext.cpp | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.cspell.config.yaml b/.cspell.config.yaml index 5c307ad521..d7f1c5f737 100644 --- a/.cspell.config.yaml +++ b/.cspell.config.yaml @@ -376,6 +376,7 @@ words: - vfalco - vinnie - wasmi + - wasmparser - Werror - wextra - wptr diff --git a/crates/xrpl-wasm-vm/tests/preflight.rs b/crates/xrpl-wasm-vm/tests/preflight.rs index 4192fcfdf4..36d4683998 100644 --- a/crates/xrpl-wasm-vm/tests/preflight.rs +++ b/crates/xrpl-wasm-vm/tests/preflight.rs @@ -479,7 +479,9 @@ fn an_exported_table_past_the_cap_does_not_pass() { assert!(refusal.contains("past the 1024-element cap"), "{refusal}"); passes(&module( - &[&format!(r#"(table (export "t") {MAX_TABLE_ELEMENTS} funcref)"#)], + &[&format!( + r#"(table (export "t") {MAX_TABLE_ELEMENTS} funcref)"# + )], "(i32.const 0)", )); } diff --git a/src/libxrpl/tx/wasm/HostContext.cpp b/src/libxrpl/tx/wasm/HostContext.cpp index 24b33a6e8c..c5a19a9fea 100644 --- a/src/libxrpl/tx/wasm/HostContext.cpp +++ b/src/libxrpl/tx/wasm/HostContext.cpp @@ -20,11 +20,13 @@ // For `TraceDataType`, which the bridge declares and this header defines. #include +#include #include #include #include #include #include +#include #include #include #include