diff --git a/src/ripple/app/tx/applyHook.h b/src/ripple/app/tx/applyHook.h index 0caf97363..1f8c64b41 100644 --- a/src/ripple/app/tx/applyHook.h +++ b/src/ripple/app/tx/applyHook.h @@ -454,7 +454,7 @@ namespace hook * Once execution has occured the exector is spent and cannot be used again and should be destructed * Information about the execution is populated into hookCtx */ - void executeWasm(const void* wasm, size_t len, bool callback, uint64_t wasmParam, beast::Journal const& j) + void executeWasm(const void* wasm, size_t len, bool callback, uint32_t wasmParam, beast::Journal const& j) { // HookExecutor can only execute once @@ -480,7 +480,7 @@ namespace hook else { - WasmEdge_Value params[1] = { WasmEdge_ValueGenI64((int64_t)wasmParam) }; + WasmEdge_Value params[1] = { WasmEdge_ValueGenI32((int64_t)wasmParam) }; WasmEdge_Value returns[1]; res = diff --git a/src/ripple/protocol/impl/InnerObjectFormats.cpp b/src/ripple/protocol/impl/InnerObjectFormats.cpp index 88779e4f8..8d373057f 100644 --- a/src/ripple/protocol/impl/InnerObjectFormats.cpp +++ b/src/ripple/protocol/impl/InnerObjectFormats.cpp @@ -78,7 +78,7 @@ InnerObjectFormats::InnerObjectFormats() }); add(sfHookDefinition.jsonName.c_str(), - sfHook.getCode(), + sfHookDefinition.getCode(), { {sfCreateCode, soeREQUIRED}, {sfHookNamespace, soeREQUIRED},