From 178fdbaff6e1d700b4ae879a0ce5f848985dbbd2 Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Fri, 31 May 2024 12:05:10 +0200 Subject: [PATCH] remove dummy arg causes `INVALID_ARGUMENT` for keylets without args --- src/ripple/app/hook/impl/applyHook.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ripple/app/hook/impl/applyHook.cpp b/src/ripple/app/hook/impl/applyHook.cpp index 4db37246e..d0bce82e5 100644 --- a/src/ripple/app/hook/impl/applyHook.cpp +++ b/src/ripple/app/hook/impl/applyHook.cpp @@ -3946,8 +3946,8 @@ JSValue hook_api::JSFunction##F(JSContext *ctx, JSValueConst this_val,\ DEFINE_JS_FUNCTION( JSValue, util_keylet, - JSValue kt_raw, - JSValue dummy_value) /* use JSValueConst* argv & int argc */ + JSValue kt_raw) + /* use JSValueConst* argv & int argc */ { JS_HOOK_SETUP();