-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Conversation
hammeiam
commented
Dec 13, 2021
•
edited
Loading
edited
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
cli/src/cast_opts.rs
Outdated
@@ -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 { }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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(()) | ||
/// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// } | |
/// } | |
/// ``` |
cli/src/forge.rs
Outdated
@@ -1,4 +1,7 @@ | |||
use ethers::solc::{remappings::Remapping, Project, ProjectPathsConfig}; | |||
use ethers::{ | |||
prelude::{ArtifactOutput, ContractFactory, MinimalCombinedArtifacts, Provider}, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM