-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[WIP] Eth to method #1568
[WIP] Eth to method #1568
Changes from all commits
d9e1f78
69ed097
10a7f27
8ed6c42
99e8a32
6772306
6349127
58e7bde
eab80a6
f2a4117
da8c2e6
3ee9243
cc4dae5
16b7605
45fe059
fca70de
f47407a
b5174e4
e4ed3da
f2f0126
1c05254
0e62a64
e652a01
a53628d
b482ee3
6888d2c
f522aa7
334bb7e
794c516
2fcb957
accbc22
477d97c
fb9e140
78e2911
3ee4786
55c8b22
c0994bf
fa068d6
08e5e5f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ | |
"eth-account>=0.5.2,<0.6.0", | ||
"eth-hash[pycryptodome]>=0.2.0,<1.0.0", | ||
"eth-typing>=2.0.0,<3.0.0", | ||
"eth-utils>=1.9.3,<2.0.0", | ||
"eth-utils==1.9.3", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will cause problems elsewhere if it remains. For example Trinity, installs Web3.py and I know that trinity requires a later version of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a bummer. eth-utils 1.9.4 breaks web3's linting so will probably have to update that before this can be shipped |
||
"hexbytes>=0.1.0,<1.0.0", | ||
"ipfshttpclient>=0.4.13,<1", | ||
"jsonschema>=3.2.0,<4.0.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
import pytest | ||
|
||
from ens.utils import ( | ||
init_web3, | ||
is_valid_domain, | ||
) | ||
|
||
|
||
def test_init_adds_middlewares(): | ||
w3 = init_web3() | ||
middlewares = map(str, w3.manager.middleware_onion) | ||
assert 'stalecheck_middleware' in next(middlewares) | ||
|
||
|
||
@pytest.mark.parametrize('domain,expected', [ | ||
('thedao.eth', True), | ||
('thedao', False), | ||
('blog.ethereum.org', True) | ||
]) | ||
def test_is_valid_domain(domain, expected): | ||
actual = is_valid_domain(domain) | ||
assert actual == expected |
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.
@njgheorghita I am not sure why I had to make this change to appease the linter, but do you see any problems with it?
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.
Hmm, I can't tell either off the top of my head, but this change doesn't seem problematic to me. 👍