Skip to content

Commit

Permalink
Merge branch 'main' of github.com:FrankC01/pysui
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankC01 committed Jun 7, 2024
2 parents 147b84f + 85e5c4d commit 534db3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysui/sui/sui_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ def recover_keypair_and_address(
If not provide, alias will be generated
:type alias: Optional[str], optional
:raises NotImplementedError: When providing unregognized scheme
:raises ValueError: If recovered keypair/address already exists
:return: The input mnemonic string and the new keypair associated SuiAddress
:rtype: tuple[str, SuiAddress]
"""
Expand All @@ -384,7 +383,8 @@ def recover_keypair_and_address(
scheme, mnemonics, derivation_path
)
if address.address in self.addresses:
raise ValueError(f"Address {address.address} already exists.")
# already exists, nothing more to do
return mnem, address
# Valid Sui base64 keystring
kpstr = keypair.serialize()
# Valid type encoded base64 Sui public key
Expand Down

0 comments on commit 534db3e

Please sign in to comment.