Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Dec 11, 2024
1 parent 9ed2349 commit 56beb5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth_defi/hotwallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def from_private_key(key: str) -> "HotWallet":
:return: Ready to go hot wallet account
"""
assert type(key) == str, f"Expectd private key as string, got {type(key)}"
assert key.startswith("0x"), f"This system assumes private keys are prefixed with 0x, your key starts with {key[0:8s]}... Please add 0x prefix to your private key hex string"
assert key.startswith("0x"), f"This system assumes private keys are prefixed with 0x, your key starts with {key[0:8]}... Please add 0x prefix to your private key hex string"
account = Account.from_key(key)
return HotWallet(account)

Expand Down

0 comments on commit 56beb5a

Please sign in to comment.