mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 16:56:53 +00:00
chore: remove checking color id (#3651)
* remove checking color id * bump version
This commit is contained in:
parent
1d5ffc0ba0
commit
7da1ed38d4
@ -700,7 +700,6 @@ func TestLoginWithKey(t *testing.T) {
|
|||||||
activeAccount, err := b.GetActiveAccount()
|
activeAccount, err := b.GetActiveAccount()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.NotNil(t, activeAccount.ColorHash)
|
require.NotNil(t, activeAccount.ColorHash)
|
||||||
require.NotZero(t, activeAccount.ColorID)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestVerifyDatabasePassword(t *testing.T) {
|
func TestVerifyDatabasePassword(t *testing.T) {
|
||||||
|
@ -399,7 +399,7 @@ func (b *GethStatusBackend) startNodeWithKey(acc multiaccounts.Account, password
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if acc.ColorHash == nil || acc.ColorID == 0 {
|
if acc.ColorHash == nil {
|
||||||
multiAccount, err := b.updateAccountColorHashAndColorID(acc.KeyUID, accountsDB)
|
multiAccount, err := b.updateAccountColorHashAndColorID(acc.KeyUID, accountsDB)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -475,7 +475,7 @@ func (b *GethStatusBackend) updateAccountColorHashAndColorID(keyUID string, acco
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if multiAccount.ColorHash == nil || multiAccount.ColorID == 0 {
|
if multiAccount.ColorHash == nil {
|
||||||
keypair, err := accountsDB.GetKeypairByKeyUID(keyUID)
|
keypair, err := accountsDB.GetKeypairByKeyUID(keyUID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -612,7 +612,7 @@ func (b *GethStatusBackend) startNodeWithAccount(acc multiaccounts.Account, pass
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if acc.ColorHash == nil || acc.ColorID == 0 {
|
if acc.ColorHash == nil {
|
||||||
multiAccount, err := b.updateAccountColorHashAndColorID(acc.KeyUID, accountsDB)
|
multiAccount, err := b.updateAccountColorHashAndColorID(acc.KeyUID, accountsDB)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user