ens #32

Merged
lash merged 21 commits from ens into master 2025-03-07 06:00:18 +01:00
Member

PR Change

  • Adds a new menu option under My Account to Edit your alias based on name of your choice.

  • Displays your assigned alias on the Main Menu.

  • Request aliases based on the ENS.

**PR Change** - Adds a new menu option under My Account to Edit your alias based on name of your choice. - Displays your assigned alias on the Main Menu. - Request aliases based on the ENS.
carlos added 19 commits 2025-02-28 16:50:38 +01:00
carlos requested review from lash 2025-02-28 16:51:23 +01:00
lash reviewed 2025-02-28 23:19:40 +01:00
@ -1107,0 +1119,4 @@
logg.ErrorCtxf(ctx, "Failed to read account alias entry with", "key", "error", storedb.DATA_ACCOUNT_ALIAS, err)
return res, err
}
res.FlagSet = append(res.FlagSet, flag_offerings_set)
Owner

is this the correct flag to set?

is this the correct flag to set?
Author
Member

This line of code is actually misplaced. The right flag would have been "flag flag_alias_set" but it is not being utilized or checked in the associated vis file. The commit c2a0b05c84 removes this unnecessary line.

This line of code is actually misplaced. The right flag would have been "flag flag_alias_set" but it is not being utilized or checked in the associated `vis ` file. The commit c2a0b05c84462067456970de472e5240dd6a0cd9 removes this unnecessary line.
@ -1458,3 +1505,3 @@
balStr := fmt.Sprintf("%.2f %s", balFloat, activeSym)
res.Content = l.Get("Balance: %s\n", balStr)
if alias != "" {
Owner

DRY?

DRY?
Author
Member

Commit: e97d4be296 aims to resolve this. The CheckBalance should possibly be refactored further maybe? Currently it not only loads the balance,but also the user alias if set.

Commit: e97d4be296ee2dd35197b28aabb7487fc3061886 aims to resolve this. The `CheckBalance` should possibly be refactored further maybe? Currently it not only loads the balance,but also the user alias if set.
@ -2397,0 +2462,4 @@
return res, err
}
//Ensures that the call doesn't happen twice for the same alias hint
if !bytes.Equal(aliasHint, input) {
Owner

could this fail if something else writes the temp value in the meantime?

could this fail if something else writes the temp value in the meantime?
Author
Member

could this fail if something else writes the temp value in the meantime?

It is unlikely that this would happen because there can only be one DB write operation to the temp value at a time for that particular session id.

> could this fail if something else writes the temp value in the meantime? It is unlikely that this would happen because there can only be one DB write operation to the temp value at a time for that particular session id.
carlos added 2 commits 2025-03-03 10:17:03 +01:00
lash approved these changes 2025-03-07 06:00:12 +01:00
lash left a comment
Owner

pending staging tests

pending staging tests
lash merged commit 144398e18b into master 2025-03-07 06:00:18 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: grassrootseconomics/sarafu-vise#32
No description provided.