From e10ea06c82c5a60f242e7b24f7538aa746097e8c Mon Sep 17 00:00:00 2001 From: Janet Liang <56005637+janet-harmony@users.noreply.github.com> Date: Tue, 14 Jul 2020 01:24:38 -0700 Subject: [PATCH] [account] Add warning when using is_valid_address (#13) * [validator] Fix typo * [account] Add thread warning to is_valid_address --- pyhmy/account.py | 1 + pyhmy/validator.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyhmy/account.py b/pyhmy/account.py index bcc4429..c82c079 100644 --- a/pyhmy/account.py +++ b/pyhmy/account.py @@ -28,6 +28,7 @@ _address_length = 42 def is_valid_address(address) -> bool: """ Check if given string is valid one address + NOTE: This function is NOT thread safe due to the C function used by the bech32 library. Parameters ---------- diff --git a/pyhmy/validator.py b/pyhmy/validator.py index a7fe9e5..2c3b832 100644 --- a/pyhmy/validator.py +++ b/pyhmy/validator.py @@ -32,7 +32,7 @@ _default_endpoint = 'http://localhost:9500' _default_timeout = 30 -# TODO: Add validator transcation functions +# TODO: Add validator transaction functions # TODO: Add unit testing class Validator: