From 941c296ae127b61cf73b9ca1b880485682ffd8de Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 28 Apr 2022 12:28:55 +0200 Subject: [PATCH] fix type error by restoring language argument --- src/mnemonic/mnemonic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mnemonic/mnemonic.py b/src/mnemonic/mnemonic.py index 374adf3..e62e144 100644 --- a/src/mnemonic/mnemonic.py +++ b/src/mnemonic/mnemonic.py @@ -67,6 +67,7 @@ def b58encode(v: bytes) -> str: class Mnemonic(object): def __init__(self, language: str = "english"): + self.language = language self.radix = 2048 d = os.path.join(os.path.dirname(__file__), f"wordlist/{language}.txt") if os.path.exists(d) and os.path.isfile(d):