Skip to content

Commit

Permalink
revert: bbc7d51.
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Oct 12, 2023
1 parent 04e770c commit 9a4626a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/postage.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (s *Service) postageCreateHandler(w http.ResponseWriter, r *http.Request) {

paths := struct {
Amount *big.Int `map:"amount" validate:"required"`
Depth uint8 `map:"depth" validate:"required,min=22"`
Depth uint8 `map:"depth" validate:"required,min=24"`
}{}
if response := s.mapStructure(mux.Vars(r), &paths); response != nil {
response("invalid path params", logger, w)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/postage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func TestPostageCreateStamp(t *testing.T) {
Reasons: []jsonhttp.Reason{
{
Field: "depth",
Error: "want min:22",
Error: "want min:24",
},
},
}),
Expand Down

0 comments on commit 9a4626a

Please sign in to comment.