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 }