Skip to content

Commit cf15ebd

Browse files
committed
accounts: remove UpdateAccount and last usages
We remove the last few calls to UpdateAccount from the TestAccountService test. Previously, the UpdateAccount call was used in this test to also _insert_ new accounts and to force the account ID to be set to specific values. So here we need to instead call the store's NewAccount method to insert a new account, then we get the AccountID from the returned value and we need to then use this returned ID (which is no longer forceable) in the remainder of the tests.
1 parent dd01de7 commit cf15ebd

File tree

3 files changed

+180
-212
lines changed

3 files changed

+180
-212
lines changed

accounts/interface.go

-5
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,6 @@ type Store interface {
207207
expirationDate time.Time, label string) (
208208
*OffChainBalanceAccount, error)
209209

210-
// UpdateAccount writes an account to the database, overwriting the
211-
// existing one if it exists.
212-
UpdateAccount(ctx context.Context,
213-
account *OffChainBalanceAccount) error
214-
215210
// Account retrieves an account from the Store and un-marshals it. If
216211
// the account cannot be found, then ErrAccNotFound is returned.
217212
Account(ctx context.Context, id AccountID) (*OffChainBalanceAccount,

0 commit comments

Comments
 (0)