Skip to content

Add the max_uint subcommand to cast and cli #223

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Dec 13, 2021

Conversation

hammeiam
Copy link
Contributor

@hammeiam hammeiam commented Dec 13, 2021

Screen Shot 2021-12-13 at 12 16 38 AM

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.

lgtm

@@ -12,6 +12,9 @@ use structopt::StructOpt;
#[derive(Debug, StructOpt)]
#[structopt(about = "Perform Ethereum RPC calls from the comfort of your command line.")]
pub enum Subcommands {
#[structopt(name = "--max-uint")]
#[structopt(about = "maximum u256 value")]
MaxUint { },
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
MaxUint { },
MaxUint,

this should still work I suppose?

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
/// assert_eq!(U256::MAX, Cast::max_uint()?);
///
/// Ok(())
/// }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// }
/// }
/// ```

cli/src/forge.rs Outdated
@@ -1,4 +1,7 @@
use ethers::solc::{remappings::Remapping, Project, ProjectPathsConfig};
use ethers::{
prelude::{ArtifactOutput, ContractFactory, MinimalCombinedArtifacts, Provider},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since these imports are unused, they seem to cause clippy to return a warning

Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

LGTM

@gakonst gakonst merged commit 68dc9ee into foundry-rs:master Dec 13, 2021
@gakonst gakonst mentioned this pull request Dec 21, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants