Skip to content

Conversation

mablr
Copy link
Contributor

@mablr mablr commented Oct 5, 2025

Motivation

Close #11094

Solution

  • Updated keystore file naming to include wallet address for better identification.
  • Introduced find_keystore_by_name utility to support both old and new filename formats.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes (account naming is backward-compatible)

- Updated keystore file naming to include wallet address for better identification.
- Introduced `find_keystore_by_name` utility to support both old and new filename formats.

if old_path.exists() && old_path != path_with_address {
std::fs::rename(&old_path, &path_with_address)?;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The renaming of the keystore file is a bit dirty due to eth_keystore lib which directly creates the file before returning the wallet necessary to derive the address. 🫤

Ideally the lib should be modified, or upstreamed to foundry to solve this in an elegant way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

feat(cast): show addresses in the output of cast wallet list
1 participant