Skip to content

[Wallet/iOS] User Assets are deletable #41357

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

Closed
5 tasks
nuo-xu opened this issue Oct 2, 2024 · 3 comments · Fixed by brave/brave-core#25805
Closed
5 tasks

[Wallet/iOS] User Assets are deletable #41357

nuo-xu opened this issue Oct 2, 2024 · 3 comments · Fixed by brave/brave-core#25805
Assignees
Labels
bug feature/web3/wallet Integrating Ethereum+ wallet support OS/iOS Fixes related to iOS browser functionality QA Pass - iPhone QA/Yes regression release-notes/exclude

Comments

@nuo-xu
Copy link

nuo-xu commented Oct 2, 2024

Description

Wallet should only provide deletion option for custom user assets

Steps to reproduce

  1. Open wallet and login with QA wallet
  2. Let the wallet loads all the auto-discovery assets
  3. Open edit user assets
  4. Find BAT on Ethereum and try to swipe row to the left

Actual result

Deletion option is available

Expected result

Deletion option should be unavailable

Reproduces how often

Easily reproduced

Brave version

1.70.x and after

Device/iOS version

all

Affected browser versions

  • latest AppStore
  • latest TestFlight
  • previous TestFlight

Reproducibility

  • with Brave Shields disabled
  • in the latest version of mobile Safari

Miscellaneous information

No response

@nuo-xu nuo-xu added bug QA/Yes regression feature/web3/wallet Integrating Ethereum+ wallet support OS/iOS Fixes related to iOS browser functionality labels Oct 2, 2024
@nuo-xu nuo-xu self-assigned this Oct 2, 2024
@nuo-xu nuo-xu added this to Web3 Oct 2, 2024
@nuo-xu
Copy link
Author

nuo-xu commented Oct 2, 2024

Update: will match desktop only allow deletion on NFTs. Reference: https://github.com/brave/brave-core/blob/087482aabf21a34d460885e1355f9b1c21f5047e/components/brave_wallet_ui/components/desktop/popup-modals/edit-visible-assets-modal/virtualized-visible-assets-list.tsx#L62
iOS does not have the ability to edit token. Since we have our own logic to avoid auto-discovery re-add back user deleted token, i think we are safe to make not only NFTs but also user added custom tokens deletable.

@kjozwiak
Copy link
Member

kjozwiak commented Oct 8, 2024

The above requires 1.70.126 or higher for 1.70.x verification 👍 The crash that @srirambv found while verifying the above will be fixed via brave/brave-core#25804 and will also be uplifted into 1.71.x & 1.70.x via brave/brave-core#25884 & brave/brave-core#25885.

@Uni-verse
Copy link
Contributor

Uni-verse commented Oct 15, 2024

Verified on iPhone 12 running iOS 18 using version 1.70 (127)

example example example
Image Image Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature/web3/wallet Integrating Ethereum+ wallet support OS/iOS Fixes related to iOS browser functionality QA Pass - iPhone QA/Yes regression release-notes/exclude
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants