Skip to content

Commit

Permalink
Remove param for unconf addr (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
altafan authored Feb 1, 2024
1 parent 263bed2 commit 5b9f4da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions router/address_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 5b9f4da

Please sign in to comment.