Skip to content

Conversation

@tskoyo
Copy link
Contributor

@tskoyo tskoyo commented Dec 2, 2025

Closes #12394

Motivation

Went through cast subcommands that don't require WalletOpts and EtherscanOpts and removed EthereumOpts.
RpcOpts is the only type that is being used.

Solution

Here's where EthereumOpts is still required:
image

PR Checklist

  • Added Tests
  • [ X] Added Documentation
  • Breaking changes

@tskoyo tskoyo changed the title Strip wallet opts and etherscan from cast subcommands feat(cast): strip WalletOpts and EtherscanOpts from cast subcommands that dont expect a signer or need etherscan api Dec 2, 2025
let provider = utils::get_provider(&config)?;
let sender = SenderKind::from_wallet_opts(eth.wallet).await?;

let sender = if let Some(from) = from {
Copy link
Member

Choose a reason for hiding this comment

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

idk if this is right, we can probably keep WalletOpts too since we accept it already? @mattsse

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you're actually right because I just should've removed EtherscanOpts that was used in EthereumOpts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll add the change!

@tskoyo tskoyo requested a review from DaniPopes December 2, 2025 21:25
@tskoyo
Copy link
Contributor Author

tskoyo commented Dec 5, 2025

@DaniPopes , any help with the test failure? I don't see any issue when I run them locally

@DaniPopes
Copy link
Member

unfortunately it's just flaky

DaniPopes
DaniPopes previously approved these changes Dec 9, 2025
@DaniPopes DaniPopes enabled auto-merge December 9, 2025 23:01
@DaniPopes
Copy link
Member

Thanks!

@DaniPopes DaniPopes added this pull request to the merge queue Dec 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 9, 2025
@DaniPopes DaniPopes added this pull request to the merge queue Dec 9, 2025
Merged via the queue into foundry-rs:master with commit b4d888b Dec 9, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

chore: strip WalletOpts and EtherscanOpts from cast subcommands that dont expect a signer or need etherscan api

2 participants