diff --git a/setup.py b/setup.py index e7cfdf2..312c32d 100644 --- a/setup.py +++ b/setup.py @@ -55,8 +55,8 @@ include_package_data=True, install_requires=[ "base58", - "eth-hash>=0.1.0,<1.0.0", - "eth-typing>=1.0.0,<3.0.0", + "eth-hash", + "eth-typing", "toolz>0.8.2,<1;implementation_name=='pypy'", "cytoolz>=0.8.2,<1.0.0;implementation_name=='cpython'", ], diff --git a/trx_utils/decorators.py b/trx_utils/decorators.py index 7f32abe..1f29cc1 100644 --- a/trx_utils/decorators.py +++ b/trx_utils/decorators.py @@ -87,7 +87,7 @@ def wrapper(*args, **kwargs): if kwargs: _validate_supported_kwarg(kwargs) - if len(args) is 0 and "primitive" not in kwargs: + if len(args) == 0 and "primitive" not in kwargs: _assert_hexstr_or_text_kwarg_is_text_type(**kwargs) return to_wrap(*args, **kwargs)