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

Fraschetti - Add wallet-search-ens-test #19338

Conversation

FFFra
Copy link
Contributor

@FFFra FFFra commented Mar 20, 2024

fixes #18348
Epic #18587

Summary
This pull request introduces comprehensive tests for the ens_addressOf endpoint, ensuring its robustness and reliability in our wallet functionality.

Steps to test
run make test-contracts

status: ready!

@status-im-auto
Copy link
Member

status-im-auto commented Mar 20, 2024

Jenkins Builds

Click to see older builds (73)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 8de9e76 #1 2024-03-20 09:39:32 ~7 min tests 📄log
✔️ 8de9e76 #1 2024-03-20 09:41:22 ~8 min android 🤖apk 📲
✔️ 8de9e76 #1 2024-03-20 09:41:23 ~8 min android-e2e 🤖apk 📲
✔️ 8de9e76 #1 2024-03-20 09:41:37 ~9 min ios 📱ipa 📲
5c6b66b #2 2024-03-20 10:30:24 ~1 min tests 📄log
✔️ 5c6b66b #2 2024-03-20 10:36:09 ~7 min android-e2e 🤖apk 📲
✔️ 5c6b66b #2 2024-03-20 10:36:15 ~7 min android 🤖apk 📲
✔️ 5c6b66b #2 2024-03-20 10:37:25 ~9 min ios 📱ipa 📲
0f88809 #3 2024-03-21 15:51:18 ~7 min tests 📄log
✔️ 0f88809 #3 2024-03-21 15:51:53 ~8 min android-e2e 🤖apk 📲
✔️ 0f88809 #3 2024-03-21 15:53:34 ~9 min android 🤖apk 📲
✔️ a350b2a #4 2024-03-21 16:04:18 ~9 min android 🤖apk 📲
✔️ a350b2a #4 2024-03-21 16:04:53 ~9 min android-e2e 🤖apk 📲
187e0d0 #5 2024-03-21 16:20:48 ~9 min tests 📄log
✔️ 187e0d0 #5 2024-03-21 16:22:53 ~12 min android-e2e 🤖apk 📲
✔️ 187e0d0 #5 2024-03-21 16:24:36 ~13 min android 🤖apk 📲
483a6ee #6 2024-03-21 16:42:26 ~3 min tests 📄log
✔️ 483a6ee #6 2024-03-21 16:45:25 ~6 min android 🤖apk 📲
✔️ 483a6ee #6 2024-03-21 16:45:38 ~6 min android-e2e 🤖apk 📲
609ef63 #7 2024-03-21 17:01:50 ~2 min tests 📄log
f7d79d3 #8 2024-03-21 17:05:59 ~3 min tests 📄log
71464b7 #9 2024-03-21 17:12:32 ~3 min tests 📄log
✔️ 71464b7 #9 2024-03-21 17:15:31 ~6 min android 🤖apk 📲
✔️ 71464b7 #9 2024-03-21 17:16:10 ~7 min android-e2e 🤖apk 📲
50fe97b #11 2024-03-21 17:18:39 ~1 min tests 📄log
f54706b #12 2024-03-21 17:23:21 ~3 min tests 📄log
✔️ bdfba19 #13 2024-03-21 17:31:35 ~6 min android-e2e 🤖apk 📲
✔️ bdfba19 #13 2024-03-21 17:32:17 ~6 min android 🤖apk 📲
✔️ bdfba19 #13 2024-03-21 17:43:07 ~17 min ios 📱ipa 📲
7296580 #14 2024-03-21 19:49:38 ~3 min tests 📄log
✔️ 7296580 #14 2024-03-21 19:53:55 ~7 min android-e2e 🤖apk 📲
✔️ 7296580 #14 2024-03-21 19:53:57 ~7 min android 🤖apk 📲
✔️ 7296580 #14 2024-03-21 19:56:53 ~10 min ios 📱ipa 📲
7296580 #15 2024-03-21 20:04:44 ~1 min tests 📄log
aa57eed #16 2024-03-21 20:32:31 ~3 min tests 📄log
✔️ aa57eed #15 2024-03-21 20:36:19 ~6 min android 🤖apk 📲
✔️ aa57eed #15 2024-03-21 20:36:20 ~6 min android-e2e 🤖apk 📲
✔️ aa57eed #15 2024-03-21 20:38:48 ~9 min ios 📱ipa 📲
cc0890d #17 2024-03-22 00:31:35 ~3 min tests 📄log
✔️ cc0890d #16 2024-03-22 00:35:38 ~7 min android-e2e 🤖apk 📲
✔️ cc0890d #16 2024-03-22 00:35:47 ~7 min android 🤖apk 📲
✔️ cc0890d #16 2024-03-22 00:46:53 ~18 min ios 📱ipa 📲
b33d848 #18 2024-03-22 10:22:49 ~3 min tests 📄log
✔️ b33d848 #17 2024-03-22 10:26:46 ~7 min android-e2e 🤖apk 📲
✔️ b33d848 #17 2024-03-22 10:26:53 ~7 min android 🤖apk 📲
✔️ b33d848 #17 2024-03-22 10:29:37 ~10 min ios 📱ipa 📲
1f9087c #19 2024-03-22 19:12:11 ~3 min tests 📄log
✔️ 1f9087c #18 2024-03-22 19:15:23 ~6 min android-e2e 🤖apk 📲
✔️ 1f9087c #18 2024-03-22 19:16:21 ~7 min android 🤖apk 📲
✔️ 1f9087c #18 2024-03-22 19:18:54 ~9 min ios 📱ipa 📲
1f9087c #20 2024-03-28 12:34:57 ~1 min tests 📄log
✔️ f2ab6c1 #21 2024-03-28 12:41:11 ~4 min tests 📄log
✔️ f2ab6c1 #19 2024-03-28 12:45:35 ~8 min android-e2e 🤖apk 📲
✔️ f2ab6c1 #19 2024-03-28 12:45:39 ~8 min android 🤖apk 📲
✔️ f2ab6c1 #19 2024-03-28 12:46:20 ~9 min ios 📱ipa 📲
✔️ f2ab6c1 #22 2024-03-28 12:47:46 ~1 min tests 📄log
c5a4f85 #23 2024-04-01 10:08:54 ~2 min tests 📄log
✔️ c5a4f85 #20 2024-04-01 10:14:42 ~8 min ios 📱ipa 📲
c5a4f85 #24 2024-04-01 10:14:50 ~2 min tests 📄log
✔️ c5a4f85 #20 2024-04-01 10:15:27 ~9 min android-e2e 🤖apk 📲
✔️ c5a4f85 #20 2024-04-01 10:15:34 ~9 min android 🤖apk 📲
a35d54b #25 2024-04-01 10:23:14 ~2 min tests 📄log
✔️ a35d54b #21 2024-04-01 10:27:02 ~6 min android 🤖apk 📲
✔️ a35d54b #21 2024-04-01 10:27:57 ~7 min android-e2e 🤖apk 📲
✔️ a35d54b #21 2024-04-01 10:29:17 ~8 min ios 📱ipa 📲
✔️ b070cf2 #26 2024-04-01 10:45:13 ~4 min tests 📄log
✔️ ec30ad4 #27 2024-04-01 10:49:57 ~4 min tests 📄log
✔️ ec30ad4 #23 2024-04-01 10:51:51 ~6 min android 🤖apk 📲
✔️ ec30ad4 #23 2024-04-01 10:53:26 ~7 min android-e2e 🤖apk 📲
✔️ ec30ad4 #23 2024-04-01 10:57:14 ~11 min ios 📱ipa 📲
✔️ e56f28b #24 2024-04-01 11:11:27 ~8 min android-e2e 🤖apk 📲
✔️ e56f28b #24 2024-04-01 11:11:41 ~8 min android 🤖apk 📲
✔️ e56f28b #24 2024-04-01 11:12:29 ~8 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ a2ae87a #25 2024-04-01 11:34:42 ~8 min android-e2e 🤖apk 📲
✔️ a2ae87a #25 2024-04-01 11:34:50 ~8 min android 🤖apk 📲
✔️ a2ae87a #25 2024-04-01 11:34:57 ~8 min ios 📱ipa 📲
✔️ b61ee58 #30 2024-04-01 12:04:49 ~4 min tests 📄log
✔️ b61ee58 #26 2024-04-01 12:08:43 ~8 min android-e2e 🤖apk 📲
✔️ b61ee58 #26 2024-04-01 12:08:49 ~8 min android 🤖apk 📲
✔️ b61ee58 #26 2024-04-01 12:09:04 ~8 min ios 📱ipa 📲

@FFFra FFFra force-pushed the fraschetti/18348-wallet-add-contract-test-for-rpc-endpoint-ens_addressof branch from 8de9e76 to 5c6b66b Compare March 20, 2024 10:28
Comment on lines 68 to 79

(defn assert-search-ens
[response]
(is (= "0xeefb13c7d42efcc655e528da6d6f7bbcf9a2251d" response)))

(deftest wallet-search-ens-test
(h/test-async :wallet/search-ens
(fn []
(p/let [input "test.eth"
chain-id constants/ethereum-mainnet-chain-id
ens-address (contract-utils/call-rpc "ens_addressOf" chain-id input)]
(assert-search-ens ens-address)))))
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @FFFra , thanks for this PR

I think there are more cases to tests, for example giving a *.stateofus.eth address. atm I only know about the existance of qoqobolo.stateofus.eth on goerli.

We can also test the resolution on Sepolia and also the response for an invalid ENS.

wdyt?

@FFFra FFFra force-pushed the fraschetti/18348-wallet-add-contract-test-for-rpc-endpoint-ens_addressof branch from 5c6b66b to 0f88809 Compare March 21, 2024 15:43
@FFFra FFFra requested a review from ulisesmac March 21, 2024 15:44
@FFFra FFFra force-pushed the fraschetti/18348-wallet-add-contract-test-for-rpc-endpoint-ens_addressof branch 12 times, most recently from 7296580 to aa57eed Compare March 21, 2024 20:29
Copy link
Contributor

@ulisesmac ulisesmac left a comment

Choose a reason for hiding this comment

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

LGTM! :) 💯

@FFFra FFFra force-pushed the fraschetti/18348-wallet-add-contract-test-for-rpc-endpoint-ens_addressof branch 2 times, most recently from cc0890d to b33d848 Compare March 22, 2024 10:19
@FFFra
Copy link
Contributor Author

FFFra commented Mar 22, 2024

Status: 🚫 due 401 CI error

@FFFra FFFra force-pushed the fraschetti/18348-wallet-add-contract-test-for-rpc-endpoint-ens_addressof branch 2 times, most recently from 1f9087c to f2ab6c1 Compare March 28, 2024 12:36
@FFFra FFFra force-pushed the fraschetti/18348-wallet-add-contract-test-for-rpc-endpoint-ens_addressof branch 4 times, most recently from ec30ad4 to e56f28b Compare April 1, 2024 11:03
@FFFra FFFra force-pushed the fraschetti/18348-wallet-add-contract-test-for-rpc-endpoint-ens_addressof branch from e56f28b to a2ae87a Compare April 1, 2024 11:26
@FFFra FFFra force-pushed the fraschetti/18348-wallet-add-contract-test-for-rpc-endpoint-ens_addressof branch from a2ae87a to b61ee58 Compare April 1, 2024 12:00
@FFFra FFFra merged commit 260a741 into develop Apr 1, 2024
6 checks passed
@FFFra FFFra deleted the fraschetti/18348-wallet-add-contract-test-for-rpc-endpoint-ens_addressof branch April 1, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

Successfully merging this pull request may close these issues.

Wallet - Add Contract test for RPC endpoint - ens_addressOf
5 participants