From 1556bb7795bac7cad0f1ed99d698e2eb3f79e236 Mon Sep 17 00:00:00 2001 From: TimothyBanks Date: Tue, 14 Jul 2026 15:57:18 -0400 Subject: [PATCH] feat: smart-escrow/versioning --- src/libxrpl/tx/wasm/WasmiVM.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libxrpl/tx/wasm/WasmiVM.cpp b/src/libxrpl/tx/wasm/WasmiVM.cpp index 3a325a74e6..53537683b6 100644 --- a/src/libxrpl/tx/wasm/WasmiVM.cpp +++ b/src/libxrpl/tx/wasm/WasmiVM.cpp @@ -804,7 +804,7 @@ namespace { struct CustomSection { std::string_view name; - std::span payload; + std::span payload; }; struct Version @@ -853,8 +853,8 @@ filterCustomSections(Bytes const& wasmCode, Filter&& filter) offset += size; size = nextSection - offset; - customSection.payload = std::span{ - reinterpret_cast(wasmCode.data()) + offset, size}; + customSection.payload = std::span{ + reinterpret_cast(wasmCode.data()) + offset, size}; if (filter(customSection)) { @@ -879,7 +879,7 @@ extractVersionInfo(Bytes const& wasmCode) Version{ .name = section.name, .version = std::string_view{ - reinterpret_cast(section.payload.data()), + section.payload.data(), section.payload.size()}}); }