From 9a4626a5d3b52abefa961befec4a6461e958dad0 Mon Sep 17 00:00:00 2001 From: istae <14264581+istae@users.noreply.github.com> Date: Thu, 12 Oct 2023 19:17:58 +0300 Subject: [PATCH] revert: bbc7d51ad6861af17b3d13ae166d50431220bba0. --- pkg/api/postage.go | 2 +- pkg/api/postage_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/postage.go b/pkg/api/postage.go index d3f612ce5d1..c9c97b98bf3 100644 --- a/pkg/api/postage.go +++ b/pkg/api/postage.go @@ -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) diff --git a/pkg/api/postage_test.go b/pkg/api/postage_test.go index ceb482a651c..5f35c73fe45 100644 --- a/pkg/api/postage_test.go +++ b/pkg/api/postage_test.go @@ -143,7 +143,7 @@ func TestPostageCreateStamp(t *testing.T) { Reasons: []jsonhttp.Reason{ { Field: "depth", - Error: "want min:22", + Error: "want min:24", }, }, }),