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

fix(forge): prefer --from if specified for cast call #7218

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Feb 23, 2024

Motivation

Seems like expected behavior is to always use --from or ETH_FROM if its specified, even if there are any wallet options specified in environment or via CLI args.

Solution

Change order of things

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

that makes sense

crates/wallets/src/wallet.rs Outdated Show resolved Hide resolved
klkvr and others added 2 commits February 23, 2024 17:53
Co-authored-by: Enrique <hi@enriqueortiz.dev>
@mattsse mattsse merged commit ac80261 into foundry-rs:master Feb 23, 2024
20 checks passed
zeroXbrock pushed a commit to flashbots/suavex-foundry that referenced this pull request Apr 2, 2024
* fix(forge): use --from if specified for call

* Update crates/wallets/src/wallet.rs

Co-authored-by: Enrique <hi@enriqueortiz.dev>

* fmt

---------

Co-authored-by: Enrique <hi@enriqueortiz.dev>
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.

3 participants