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-get-address-details-contract-test #19340

Conversation

FFFra
Copy link
Contributor

@FFFra FFFra commented Mar 20, 2024

fixes #18349
Epic #18587

Summary
This pull request introduces comprehensive tests for the wallet_getAddressDetails 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 (11)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b717f04 #1 2024-03-20 12:04:15 ~6 min tests 📄log
✔️ b717f04 #1 2024-03-20 12:04:51 ~6 min android 🤖apk 📲
✔️ b717f04 #1 2024-03-20 12:05:41 ~7 min android-e2e 🤖apk 📲
✔️ b717f04 #1 2024-03-20 12:06:59 ~9 min ios 📱ipa 📲
✔️ 9690ba5 #2 2024-03-21 16:01:39 ~8 min tests 📄log
✔️ 9690ba5 #2 2024-03-21 16:01:42 ~8 min android-e2e 🤖apk 📲
✔️ 9690ba5 #2 2024-03-21 16:01:59 ~8 min android 🤖apk 📲
✔️ 9690ba5 #2 2024-03-21 16:29:35 ~36 min ios 📱ipa 📲
✔️ bc04c33 #3 2024-03-22 09:00:30 ~7 min android 🤖apk 📲
✔️ bc04c33 #3 2024-03-22 09:00:38 ~7 min android-e2e 🤖apk 📲
✔️ bc04c33 #3 2024-03-22 09:01:40 ~8 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ a5611c2 #4 2024-03-22 09:23:31 ~7 min android-e2e 🤖apk 📲
✔️ a5611c2 #4 2024-03-22 09:23:36 ~7 min android 🤖apk 📲
✔️ a5611c2 #4 2024-03-22 09:27:28 ~11 min ios 📱ipa 📲
✔️ 4572c17 #5 2024-03-22 09:45:09 ~7 min tests 📄log
✔️ 4572c17 #5 2024-03-22 09:45:57 ~7 min android 🤖apk 📲
✔️ 4572c17 #5 2024-03-22 09:46:36 ~8 min android-e2e 🤖apk 📲
✔️ 4572c17 #5 2024-03-22 09:47:35 ~9 min ios 📱ipa 📲

@FFFra
Copy link
Contributor Author

FFFra commented Mar 20, 2024

My RPC Calls returns:
{:address "0xeefb13c7d42efcc655e528da6d6f7bbcf9a2251d", :path "", :hasActivity true, :alreadyCreated false}
Its expected the path to be empty?

[result]
(is (contains? result :address))
(is (contains? result :path))
(is (true? (:hasActivity result)))
Copy link
Member

Choose a reason for hiding this comment

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

status-go doesn't actually check whether there is an activity in that address instead it checks whether it has any balance or not.
If the address (test.eth) depletes the balance, this test will fail.

I would suggest checking whether the key is present in the result or not.
OR we can check whether this value is boolean (using the boolean? method).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tks! I was not aware. Gonna do this change!

@FFFra FFFra force-pushed the fraschetti/18349-add-contract-test-for-rpc-endpoint-wallet_getaddressdetails branch from b717f04 to 9690ba5 Compare March 21, 2024 15:53
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.

Thanks for these PRs @FFFra 💯

Copy link
Member

@smohamedjavid smohamedjavid left a comment

Choose a reason for hiding this comment

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

🚀

@FFFra FFFra force-pushed the fraschetti/18349-add-contract-test-for-rpc-endpoint-wallet_getaddressdetails branch 2 times, most recently from bc04c33 to a5611c2 Compare March 22, 2024 09:15
@FFFra FFFra force-pushed the fraschetti/18349-add-contract-test-for-rpc-endpoint-wallet_getaddressdetails branch from a5611c2 to 4572c17 Compare March 22, 2024 09:37
@FFFra FFFra merged commit 0cc414d into develop Mar 22, 2024
6 checks passed
@FFFra FFFra deleted the fraschetti/18349-add-contract-test-for-rpc-endpoint-wallet_getaddressdetails branch March 22, 2024 09:51
mmilad75 pushed a commit that referenced this pull request Apr 2, 2024
Introduces comprehensive tests for the wallet_getAddressDetails endpoint
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 - wallet_getAddressDetails
4 participants