Skip to content

Commit

Permalink
update from_seed keypair generation
Browse files Browse the repository at this point in the history
  • Loading branch information
PaTara43 committed Jul 16, 2024
1 parent 0f9f189 commit c6ce0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robonomicsinterface/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def create_keypair(seed: str, crypto_type: int = KeypairType.SR25519) -> Keypair
"""

if seed.startswith("0x"):
return Keypair.create_from_seed(seed_hex=hex(int(seed, 16)), ss58_format=32, crypto_type=crypto_type)
return Keypair.create_from_seed(seed, ss58_format=32, crypto_type=crypto_type)
elif seed.startswith("//"):
return Keypair.create_from_uri(suri=seed, ss58_format=32, crypto_type=crypto_type)
else:
Expand Down

0 comments on commit c6ce0a1

Please sign in to comment.