Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow recovery of an account via the mnemonic even if it is already in SuiConfig #211

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

kaellis
Copy link
Contributor

@kaellis kaellis commented Jun 6, 2024

Currently when you call SuiConfig.recover_keypair_and_address with a mnemonic (to recover an account), a ValueError will be raised, indicating that the key already exists. However the function does not inform you of the account address. This leaves the caller unaware of the address, and they can't make use of the account or recover it -- short of just creating a new SuiConfig. Instead of raising a ValueError, the mnemonic and address is just returned, since it was already created.

@FrankC01 FrankC01 merged commit 85e5c4d into FrankC01:main Jun 7, 2024
FrankC01 added a commit that referenced this pull request Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants