chore: less flaky AccountManagerMock for community tests
This commit is contained in:
parent
75c9374420
commit
ecf493e6cd
|
@ -68,16 +68,10 @@ 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")
|
||||
}
|
||||
|
||||
func (m *AccountManagerMock) CanRecover(rpcParams account.RecoverParams, revealedAddress types.Address) (bool, error) {
|
||||
return true, nil
|
||||
|
|
Loading…
Reference in New Issue