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

refactor wallet context and fixup account cli #910

Merged
merged 2 commits into from
Oct 4, 2023
Merged

Conversation

baichuan3
Copy link
Collaborator

@baichuan3 baichuan3 commented Oct 4, 2023

resolve #906

Summary

  1. Remove the keystore from the client config, leaving only the keystore path in the client config
  2. Load keystore in Wallet Context, keystore is used as an attribute of WalletContext
  3. Make the account account create to a local operation; do not execute the transaction

@vercel
Copy link

vercel bot commented Oct 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Oct 4, 2023 5:24am

pub server_config: PersistedConfig<ServerConfig>,
pub keystore: Keystore<K, V>,
Copy link
Contributor

Choose a reason for hiding this comment

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

We have not found a suitable approach to supporting the Ethereum transaction in CLI. We can make the Keystore<K<V> to Keystore<RoochAddress, RoochKeyPair>. After we support other KeyPairType to the WalletContext, we can refactor it later.

Copy link
Contributor

Choose a reason for hiding this comment

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

I merge this PR first, we can refactor it later.

@jolestar jolestar merged commit 283157a into main Oct 4, 2023
4 checks passed
@jolestar jolestar deleted the fixup_account_cli branch October 4, 2023 07:29
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.

[Cli] Newly account will be overwritten in keystore file and can't list
2 participants