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
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.

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

2 participants