-
Notifications
You must be signed in to change notification settings - Fork 987
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
Fraschetti - Add wallet-search-ens-test #19338
Conversation
Jenkins BuildsClick to see older builds (73)
|
8de9e76
to
5c6b66b
Compare
|
||
(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))))) |
There was a problem hiding this comment.
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?
5c6b66b
to
0f88809
Compare
7296580
to
aa57eed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! :) 💯
cc0890d
to
b33d848
Compare
Status: 🚫 due 401 CI error |
1f9087c
to
f2ab6c1
Compare
ec30ad4
to
e56f28b
Compare
e56f28b
to
a2ae87a
Compare
a2ae87a
to
b61ee58
Compare
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!