Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Add UpdateAccount to AccountWithWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrvivian committed May 15, 2024
1 parent b1d1581 commit 8dd8f1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/testsuite/mock/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ func (a *AccountWithWallet) Account() *AccountData {
return a.account
}

func (a *AccountWithWallet) UpdateAccount(updatedAccount *AccountData) {
a.account = updatedAccount
a.wallet.SetBlockIssuer(updatedAccount)
}

func (a *AccountWithWallet) Wallet() *Wallet {
return a.wallet
}
Expand Down

0 comments on commit 8dd8f1f

Please sign in to comment.