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

feat: implement proper error handling for swaps #21261

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

briansztamfater
Copy link
Member

@briansztamfater briansztamfater commented Sep 12, 2024

fixes #20342
fixes #20271

Summary

This PR implements error handling for swap proposal errors.

Platforms

  • Android
  • iOS

Areas that maybe impacted

Functional
  • wallet / transactions

Steps to test

  • Open Status
  • Login
  • Go to wallet
  • Select an account
  • Select Swap option
  • Select a token on Select asset to pay screen
  • Enter a different amounts (low amount, max amount for ETH, an amount that exceeds the max amount)
  • Wait for swap proposal or error to appear
  • Verify the errors are shown correctly

status: ready

@status-im-auto
Copy link
Member

status-im-auto commented Sep 12, 2024

Jenkins Builds

Click to see older builds (41)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 9ed4f1b #1 2024-09-12 18:22:49 ~4 min tests 📄log
✔️ 9ed4f1b #1 2024-09-12 18:24:28 ~6 min android-e2e 🤖apk 📲
✔️ 9ed4f1b #1 2024-09-12 18:26:11 ~8 min android 🤖apk 📲
✔️ 9ed4f1b #1 2024-09-12 18:28:56 ~10 min ios 📱ipa 📲
✔️ 9dbacf9 #2 2024-09-12 19:05:45 ~5 min tests 📄log
✔️ 9dbacf9 #2 2024-09-12 19:09:23 ~8 min android-e2e 🤖apk 📲
✔️ 9dbacf9 #2 2024-09-12 19:09:39 ~8 min android 🤖apk 📲
✔️ 9dbacf9 #2 2024-09-12 19:11:13 ~10 min ios 📱ipa 📲
36529a4 #3 2024-09-13 02:45:19 ~3 min tests 📄log
590cb27 #4 2024-09-13 02:53:25 ~2 min tests 📄log
590cb27 #4 2024-09-13 02:53:33 ~2 min ios 📄log
✔️ 590cb27 #4 2024-09-13 02:58:25 ~7 min android-e2e 🤖apk 📲
✔️ 590cb27 #4 2024-09-13 02:58:59 ~8 min android 🤖apk 📲
✔️ 232576a #6 2024-09-13 23:26:39 ~4 min tests 📄log
✔️ 232576a #6 2024-09-13 23:29:45 ~7 min android-e2e 🤖apk 📲
✔️ 232576a #6 2024-09-13 23:30:04 ~7 min android 🤖apk 📲
✔️ 232576a #6 2024-09-13 23:32:11 ~9 min ios 📱ipa 📲
✔️ 264cb1f #7 2024-09-13 23:38:40 ~4 min tests 📄log
✔️ 264cb1f #7 2024-09-13 23:42:26 ~8 min android-e2e 🤖apk 📲
✔️ 264cb1f #7 2024-09-13 23:42:54 ~9 min android 🤖apk 📲
✔️ 264cb1f #7 2024-09-13 23:45:11 ~11 min ios 📱ipa 📲
✔️ e14a86c #8 2024-09-14 01:50:40 ~4 min tests 📄log
✔️ e14a86c #8 2024-09-14 01:54:25 ~8 min android-e2e 🤖apk 📲
✔️ e14a86c #8 2024-09-14 01:54:52 ~9 min android 🤖apk 📲
✔️ e14a86c #8 2024-09-14 02:02:57 ~17 min ios 📱ipa 📲
✔️ 645c3b1 #9 2024-09-14 04:12:20 ~4 min tests 📄log
✔️ 645c3b1 #9 2024-09-14 04:15:32 ~7 min android-e2e 🤖apk 📲
✔️ 645c3b1 #9 2024-09-14 04:16:02 ~8 min android 🤖apk 📲
✔️ 645c3b1 #9 2024-09-14 04:18:28 ~10 min ios 📱ipa 📲
✔️ b22b49a #10 2024-09-18 11:30:41 ~5 min tests 📄log
✔️ b22b49a #10 2024-09-18 11:34:18 ~8 min android-e2e 🤖apk 📲
✔️ b22b49a #10 2024-09-18 11:34:46 ~9 min android 🤖apk 📲
✔️ b22b49a #10 2024-09-18 11:38:59 ~13 min ios 📱ipa 📲
✔️ 90488f5 #11 2024-09-18 16:14:07 ~4 min tests 📄log
✔️ 90488f5 #11 2024-09-18 16:17:25 ~7 min android-e2e 🤖apk 📲
✔️ 90488f5 #11 2024-09-18 16:17:50 ~7 min android 🤖apk 📲
✔️ 90488f5 #11 2024-09-18 16:22:32 ~12 min ios 📱ipa 📲
✔️ 02bbed2 #12 2024-09-18 19:42:45 ~4 min tests 📄log
✔️ 02bbed2 #12 2024-09-18 19:45:09 ~6 min android 🤖apk 📲
✔️ 02bbed2 #12 2024-09-18 19:45:39 ~7 min android-e2e 🤖apk 📲
✔️ 02bbed2 #12 2024-09-18 19:50:32 ~12 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 8c75a74 #14 2024-09-18 20:39:28 ~4 min tests 📄log
✔️ 8c75a74 #14 2024-09-18 20:43:11 ~8 min android-e2e 🤖apk 📲
✔️ 8c75a74 #14 2024-09-18 20:43:27 ~9 min android 🤖apk 📲
✔️ 8c75a74 #14 2024-09-18 20:44:43 ~10 min ios 📱ipa 📲
✔️ 50343db #15 2024-09-19 14:54:03 ~3 min tests 📄log
✔️ 50343db #15 2024-09-19 14:57:55 ~7 min android-e2e 🤖apk 📲
✔️ 50343db #15 2024-09-19 14:58:26 ~8 min android 🤖apk 📲
✔️ 50343db #15 2024-09-19 14:59:13 ~9 min ios 📱ipa 📲

@briansztamfater briansztamfater force-pushed the feat/swap-error-handling branch 2 times, most recently from fb68f41 to 232576a Compare September 13, 2024 23:21
@VolodLytvynenko
Copy link
Contributor

Hi @briansztamfater, should this PR be tested now, or is it better to wait until the status changes from 'draft' to 'open'?

@briansztamfater
Copy link
Member Author

briansztamfater commented Sep 16, 2024

Hey @VolodLytvynenko, this is almost ready, but I think it is better to first verify #21179 is correctly tested, because status-go latest changes introduced some bugs in the mobile client and would make difficult to test this PR. Once we merge #21179 I will rebase this one, solve the conflicts and send it to review.

@briansztamfater briansztamfater changed the title [WIP] feat: implement proper error handling for swaps feat: implement proper error handling for swaps Sep 19, 2024
@briansztamfater briansztamfater marked this pull request as ready for review September 19, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: REVIEW
Development

Successfully merging this pull request may close these issues.

Swap proposal error Valid swap proposal
3 participants