-
Notifications
You must be signed in to change notification settings - Fork 2k
Update logs.rs #10264
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
Update logs.rs #10264
Conversation
crates/cast/src/cmd/logs.rs
Outdated
@@ -269,7 +269,7 @@ mod tests { | |||
|
|||
#[test] | |||
fn test_build_filter_sig_with_arguments() { | |||
let addr = Address::from_str(ADDRESS).unwrap(); | |||
let addr = address!(ADDRESS); |
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.
could we update the function def instead? like instead of defining this as str we can just ADDRESS: Address = address!
crates/cast/src/cmd/logs.rs
Outdated
@@ -269,7 +269,7 @@ mod tests { | |||
|
|||
#[test] | |||
fn test_build_filter_sig_with_arguments() { | |||
let addr = Address::from_str(ADDRESS).unwrap(); | |||
let addr = ADDRESS; |
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.
now these tmp vars are redundant and we can get rid of them
crates/cast/src/cmd/logs.rs
Outdated
@@ -217,7 +218,7 @@ mod tests { | |||
fn test_build_filter_basic() { | |||
let from_block = Some(BlockNumberOrTag::from(1337)); | |||
let to_block = Some(BlockNumberOrTag::Latest); | |||
let address = Address::from_str(ADDRESS).ok(); | |||
let address = Address::from_str(ADDRESS.to_string()).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.
this is redundant
This has no title, description, and is not a change of value |
No description provided.