mirror of
https://github.com/status-im/status-go.git
synced 2025-02-26 05:35:36 +00:00
chore: less flaky AccountManagerMock for community tests
This commit is contained in:
parent
75c9374420
commit
ecf493e6cd
@ -68,15 +68,9 @@ func (m *TestTokenManager) GetBalancesByChain(ctx context.Context, accounts, tok
|
||||
}
|
||||
|
||||
func (m *AccountManagerMock) GetVerifiedWalletAccount(db *accounts.Database, address, password string) (*account.SelectedExtKey, error) {
|
||||
if truePassword, ok := m.AccountsMap[address]; ok {
|
||||
if password == truePassword {
|
||||
return &account.SelectedExtKey{
|
||||
Address: types.HexToAddress(address),
|
||||
}, nil
|
||||
}
|
||||
return nil, errors.New("password doesn't match")
|
||||
}
|
||||
return nil, errors.New("address doesn't exist")
|
||||
return &account.SelectedExtKey{
|
||||
Address: types.HexToAddress(address),
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (m *AccountManagerMock) CanRecover(rpcParams account.RecoverParams, revealedAddress types.Address) (bool, error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user