mirror of
https://github.com/emo2007/block-accounting.git
synced 2025-01-18 15:36:27 +00:00
xseed header
This commit is contained in:
parent
7989c2e2a6
commit
0f94e582a6
@ -247,6 +247,7 @@ func (i *chainInteractor) PubKey(ctx context.Context, user *models.User) ([]byte
|
|||||||
return nil, fmt.Errorf("error build request. %w", err)
|
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")
|
req.Header.Add("Content-Type", "application/json")
|
||||||
|
|
||||||
resp, err := http.DefaultClient.Do(req)
|
resp, err := http.DefaultClient.Do(req)
|
||||||
@ -394,7 +395,7 @@ func (i *chainInteractor) PayrollDeploy(
|
|||||||
}
|
}
|
||||||
|
|
||||||
req.Header.Add("Content-Type", "application/json")
|
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)
|
resp, err := http.DefaultClient.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user