-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Account call #1635
Comments
@flexsurfer not sure I get this right, but looks like you already have anything you need: You need to pass the whole multiaccount (it's serialized as a blob on status-go, so we don't have access to the fields), but you could just update the account you care about and pass the whole object, or am I missing something? |
@cammellos why do we have now i can see that we also save here do we need |
not sure, let me check what's going on with that |
@flexsurfer we have a separate table to store "wallet accounts", which is what that calls is updating/inserting. I am not still 100% sure what we need it for, but best guess is that we need it so status-go has access to the actual accounts and can ask for balances etc. It also stores color/path etc, but as far as I can see, that data is not used, and the whole wallet accounts are denormalized under your own account (which is the one being used). So as far as I can see updating the wallet account through a new endpoint is something that is not strictly necessary, as those fields are never used and only the "denormalized" version is used. So what I would do for now is just leave it as it, don't update those, and we need to go back to this and either remove those fields that are never used (color etc), and use only those serialized in multiaccounts, or the opposite, don't denormalise the fieds in multiaccounts, and pull them from this table instead, as currently it's all a bit confusing. |
thanks |
Problem
To implement status-im/status-mobile#8446 we need ability to update account's name and colour
Implementation
accounts_updateAccount ?
Acceptance Criteria
It is possible to modify account name and color and save
The text was updated successfully, but these errors were encountered: