Skip to content

Commit

Permalink
chore: lower min depth (#4403)
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Oct 16, 2023
1 parent 519c1ac commit 50fcec7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/patches/postage_api.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
80c80
< Depth uint8 `map:"depth" validate:"required,min=24"`
< Depth uint8 `map:"depth" validate:"required,min=17"`
---
> Depth uint8 `map:"depth" validate:"required"`
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=24"`
Depth uint8 `map:"depth" validate:"required,min=17"`
}{}
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:24",
Error: "want min:17",
},
},
}),
Expand Down

0 comments on commit 50fcec7

Please sign in to comment.