Compare commits

...

2 Commits

Author SHA1 Message Date
4c3d90c374
Merge branch 'master' into address-sessionId 2024-10-26 15:10:51 +03:00
4011bc18b6
define address key 2024-10-25 17:45:32 +03:00
2 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,7 @@ func (h *Handlers) createAccountNoExist(ctx context.Context, sessionId string, r
data := map[utils.DataTyp]string{ data := map[utils.DataTyp]string{
utils.DATA_TRACKING_ID: trackingId, utils.DATA_TRACKING_ID: trackingId,
utils.DATA_PUBLIC_KEY: publicKey, utils.DATA_PUBLIC_KEY: publicKey,
utils.DATA_ADDRESS: sessionId,
} }
for key, value := range data { for key, value := range data {
store := h.userdataStore store := h.userdataStore
@ -532,6 +533,7 @@ func (h *Handlers) CheckAccountStatus(ctx context.Context, sym string, input []b
if err != nil { if err != nil {
return res, err return res, err
} }
okResponse, err = h.accountService.TrackAccountStatus(ctx, string(publicKey)) okResponse, err = h.accountService.TrackAccountStatus(ctx, string(publicKey))
if err != nil { if err != nil {
res.FlagSet = append(res.FlagSet, flag_api_error) res.FlagSet = append(res.FlagSet, flag_api_error)

View File

@ -28,6 +28,7 @@ const (
DATA_ACTIVE_SYM DATA_ACTIVE_SYM
DATA_TEMPORARY_BAL DATA_TEMPORARY_BAL
DATA_ACTIVE_BAL DATA_ACTIVE_BAL
DATA_ADDRESS
) )
func typToBytes(typ DataTyp) []byte { func typToBytes(typ DataTyp) []byte {