Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#trivial remove updateSource from updateListener #1335

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

bangtoven
Copy link
Contributor

@bangtoven bangtoven commented Jun 28, 2024

Summary

separating out from #1331

How did you test your changes?

unit tests

update listener interface

remove source=storage case

deprecate source
@bangtoven bangtoven marked this pull request as ready for review June 28, 2024 20:02
@bangtoven bangtoven enabled auto-merge (squash) June 28, 2024 20:03
@@ -153,16 +152,14 @@ export class CoinbaseWalletProvider extends EventEmitter implements ProviderInte
readonly isCoinbaseWallet = true;

protected readonly updateListener = {
onAccountsUpdate: ({ accounts, source }: AccountsUpdate) => {
onAccountsUpdate: (accounts: AddressString[]) => {
if (areAddressArraysEqual(this.accounts, accounts)) return;
this.accounts = accounts;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

provider won't be in charge of storing accounts anymore in upcoming PR #1331

@bangtoven bangtoven requested a review from vishnumad June 28, 2024 20:08
@bangtoven bangtoven merged commit 51fc791 into master Jun 28, 2024
9 checks passed
@bangtoven bangtoven deleted the jungho/deprecate-source branch June 28, 2024 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants