From 0f94e582a654e6f6917e6b3f965169296e9d5516 Mon Sep 17 00:00:00 2001 From: optclblast Date: Wed, 29 May 2024 00:06:48 +0300 Subject: [PATCH] xseed header --- backend/internal/usecase/interactors/chain/chain.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/internal/usecase/interactors/chain/chain.go b/backend/internal/usecase/interactors/chain/chain.go index 215d239..6259335 100644 --- a/backend/internal/usecase/interactors/chain/chain.go +++ b/backend/internal/usecase/interactors/chain/chain.go @@ -247,6 +247,7 @@ func (i *chainInteractor) PubKey(ctx context.Context, user *models.User) ([]byte return nil, fmt.Errorf("error build request. %w", err) } + req.Header.Add("x-seed", common.Bytes2Hex(user.Seed())) req.Header.Add("Content-Type", "application/json") resp, err := http.DefaultClient.Do(req) @@ -394,7 +395,7 @@ func (i *chainInteractor) PayrollDeploy( } req.Header.Add("Content-Type", "application/json") - req.Header.Add("X-Seed", common.Bytes2Hex(user.Seed())) + req.Header.Add("x-seed", common.Bytes2Hex(user.Seed())) resp, err := http.DefaultClient.Do(req) if err != nil {