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

Check addresses and hashes format #2948

Merged
merged 5 commits into from
Jan 17, 2025
Merged

Check addresses and hashes format #2948

merged 5 commits into from
Jan 17, 2025

Conversation

ouziel-slama
Copy link
Contributor

@ouziel-slama ouziel-slama commented Jan 17, 2025

  • Double-check the spelling and grammar of all strings, code comments, etc.
  • Double-check that all code is deterministic that needs to be
  • Add tests to cover any new or revised logic
  • Ensure that the test suite passes
  • Update the project release notes
  • Update the project documentation, as appropriate, with a corresponding Pull Request in the Documentation repository

if str_arg is not None:
if arg_name.startswith("address"):
addresses = str_arg.split(",")
if not all([address.is_valid_address(addr) for addr in addresses]):

Check warning

Code scanning / pylint

Use a generator instead 'all(address.is_valid_address(addr) for addr in addresses)'. Warning

Use a generator instead 'all(address.is_valid_address(addr) for addr in addresses)'.
setup(config.NETWORK_NAME)


def is_valid_tx_hash(hash):

Check warning

Code scanning / pylint

Redefining built-in 'hash'. Warning

Redefining built-in 'hash'.
def send(self, data, retry=0):
try:
self.client.send(data)
except Exception as e:

Check warning

Code scanning / pylint

Catching too general exception Exception. Warning

Catching too general exception Exception.
@ouziel-slama ouziel-slama merged commit 6bb7afb into fixes Jan 17, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants