Skip to content

Commit 189e3b5

Browse files
author
Andres D. Molins
committed
Fix: Solve typing issue passing the chain argument.
1 parent 12db402 commit 189e3b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aleph/sdk/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
__all__ = ("StorageEnum", "Account", "AccountFromPrivateKey", "GenericMessage")
88

9-
from aleph_message.models import AlephMessage
9+
from aleph_message.models import AlephMessage, Chain
1010

1111

1212
class StorageEnum(str, Enum):
@@ -35,7 +35,7 @@ def get_public_key(self) -> str: ...
3535
class AccountFromPrivateKey(Account, Protocol):
3636
"""Only accounts that are initialized from a private key string are supported."""
3737

38-
def __init__(self, private_key: bytes): ...
38+
def __init__(self, private_key: bytes, chain: Chain): ...
3939

4040
async def sign_raw(self, buffer: bytes) -> bytes: ...
4141

0 commit comments

Comments
 (0)