From 88c9d6d5f2400b0e13cbecb481ce3b1d3f1e52ba Mon Sep 17 00:00:00 2001 From: altafan <18440657+altafan@users.noreply.github.com> Date: Thu, 1 Feb 2024 20:00:31 +0100 Subject: [PATCH] Remove param for unconf addr --- router/address_handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/router/address_handler.go b/router/address_handler.go index 715d430..78ac240 100644 --- a/router/address_handler.go +++ b/router/address_handler.go @@ -11,12 +11,11 @@ import ( func (r *Router) HandleAddressRequest(res http.ResponseWriter, req *http.Request) { res.Header().Set("Access-Control-Allow-Origin", "*") - status, resp, err := helpers.HandleRPCRequest(r.RPCClient, "getnewaddress", []interface{}{"", "bech32"}) + status, resp, err := helpers.HandleRPCRequest(r.RPCClient, "getnewaddress", []interface{}{}) if err != nil { http.Error(res, err.Error(), status) return } json.NewEncoder(res).Encode(map[string]string{"address": resp.(string)}) - return }