Skip to content

Commit

Permalink
Merge pull request #414 from BuxOrg/feat/BUX-478/UpdateDestinationMet…
Browse files Browse the repository at this point in the history
…adata

Bux 478: update destination metadata
  • Loading branch information
Nazarii-4chain authored Jan 23, 2024
2 parents 51125d2 + 4c7de85 commit c260f3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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 required: id, address or lockingScript")
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.

0 comments on commit c260f3a

Please sign in to comment.