Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bux 478: update destination metadata #414

Merged
merged 7 commits into from
Jan 23, 2024
2 changes: 1 addition & 1 deletion actions/destinations/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (a *Action) update(w http.ResponseWriter, req *http.Request, _ httprouter.P
address := params.GetString("address")
lockingScript := params.GetString("locking_script")
if id == "" && address == "" && lockingScript == "" {
apirouter.ReturnResponse(w, req, http.StatusExpectationFailed, bux.ErrMissingFieldID)
apirouter.ReturnResponse(w, req, http.StatusExpectationFailed, "One of the fields is missing: id, address or lockingScript")
chris-4chain marked this conversation as resolved.
Show resolved Hide resolved
return
}
metadata := params.GetJSON(actions.MetadataField)
Expand Down
2 changes: 2 additions & 0 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading