Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(wallet): enhance keystore listing with address suffix #11977

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

Draft
mablr wants to merge 1 commit into foundry-rs:master
base: master
Choose a base branch
Loading
from mablr:feature/wallets_list_addresses

Conversation

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

Reviewers

@DaniPopes DaniPopes Awaiting requested review from DaniPopes DaniPopes will be requested when the pull request is marked ready for review DaniPopes is a code owner

@mattsse mattsse Awaiting requested review from mattsse mattsse will be requested when the pull request is marked ready for review mattsse is a code owner

@grandizzy grandizzy Awaiting requested review from grandizzy grandizzy will be requested when the pull request is marked ready for review grandizzy is a code owner

@zerosnacks zerosnacks Awaiting requested review from zerosnacks zerosnacks will be requested when the pull request is marked ready for review zerosnacks is a code owner

@onbjerg onbjerg Awaiting requested review from onbjerg onbjerg will be requested when the pull request is marked ready for review onbjerg is a code owner

@0xrusowsky 0xrusowsky Awaiting requested review from 0xrusowsky 0xrusowsky will be requested when the pull request is marked ready for review 0xrusowsky is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

Status: No status

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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

1 participant

AltStyle によって変換されたページ (->オリジナル) /