define address key

This commit is contained in:
Carlosokumu 2024-10-25 17:45:32 +03:00
parent 6b5d3f74d1
commit 4011bc18b6
Signed by untrusted user: carlos
GPG Key ID: 7BD6BC8160A5C953
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -23,6 +23,7 @@ const (
DATA_RECIPIENT
DATA_AMOUNT
DATA_TEMPORARY_PIN
DATA_ADDRESS
)
func typToBytes(typ DataTyp) []byte {