Skip to content

Simplify exported interface of the primary wallet #1849

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

Merged
merged 9 commits into from
Aug 15, 2023

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

Currently the exported functions for creating a wallet are very ugly. There is no reason for such similar functions to exist as separate functions.

How this works

Converts 4 exported functions into 1 single exported function.

How this was tested

  • CI
  • Looked into the ANR and CLI - this will break them (but the fixes will be trivial). The only non-trivial fix would be if someone directly used NewWalletWithTxsAndState... But someone using this function should really just be using NewWallet (if at all) - as they are heavily customizing the wallet.

@StephenButtolph StephenButtolph added sdk This involves SDK tooling or frameworks cleanup Code quality improvement labels Aug 14, 2023
@StephenButtolph StephenButtolph added this to the v1.10.9 milestone Aug 14, 2023
Copy link
Contributor

@felipemadero felipemadero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a nit

Co-authored-by: Dhruba Basu <7675102+dhrubabasu@users.noreply.github.com>
Signed-off-by: Stephen Buttolph <stephen@avalabs.org>
@StephenButtolph StephenButtolph merged commit 1e05048 into dev Aug 15, 2023
@StephenButtolph StephenButtolph deleted the cleanup-wallet-initialization branch August 15, 2023 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement sdk This involves SDK tooling or frameworks
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants