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

bugfix/collectible detection by acccount #487

Merged
merged 3 commits into from
Jun 4, 2021

Conversation

estebanmino
Copy link
Contributor

When auto detecting collectibles there are some cases where some collectibles were detected in the wrong account. One way I could reproduce that was in the following case

I could repro that with tests, removing this check https://github.com/MetaMask/controllers/compare/bugfix/assets-detection-by-acccount?expand=1#diff-3202c2273084eb58dae3e0d4e23765dce262bb24c93eb3bf166c56d2d7bf02c8R401

@estebanmino estebanmino requested a review from a team as a code owner June 1, 2021 21:26
Copy link
Contributor

@rickycodes rickycodes left a comment

Choose a reason for hiding this comment

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

one small thing, but otherwise looks good to me.

@@ -355,9 +355,10 @@ export class AssetsDetectionController extends BaseController<
if (!this.isMainnet()) {
return;
}
const { selectedAddress } = this.config;
const requestedSelectedAddress = this.config.selectedAddress;
Copy link
Contributor

Choose a reason for hiding this comment

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

any particular reason for the rename? seems selectedAddress would still be fine no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm not really, just to be clear that it was the address from where it was being called

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can go back to selectedAddress if you want 👌

Copy link
Contributor

Choose a reason for hiding this comment

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

nah it's fine.

just to be clear that it was the address from where it was being called

I think that's plenty reason enough to rename. feel free to merge.

@mobularay mobularay added the bug Something isn't working label Jun 4, 2021
@estebanmino estebanmino merged commit 34486cb into main Jun 4, 2021
@estebanmino estebanmino deleted the bugfix/assets-detection-by-acccount branch June 4, 2021 15:21
@estebanmino estebanmino mentioned this pull request Jun 7, 2021
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants