-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
chore(deps): bump alloy to 0.4.0 #9000
base: master
Are you sure you want to change the base?
Conversation
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.
I think we can get rid of some casts if we also change the field to u64
@@ -65,7 +65,7 @@ pub fn transaction_request_to_typed( | |||
kind: to.unwrap_or_default(), | |||
mint: other.get_deserialized::<U256>("mint")?.ok()?, | |||
value: value.unwrap_or_default(), | |||
gas_limit: gas.unwrap_or_default(), | |||
gas_limit: gas.map(|g| g as u128).unwrap_or_default(), |
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 instead change this type to u64?
@@ -1178,14 +1178,14 @@ latest block number: {latest_block}" | |||
// if not set explicitly we use the base fee of the latest block | |||
if self.base_fee.is_none() { | |||
if let Some(base_fee) = block.header.base_fee_per_gas { | |||
self.base_fee = Some(base_fee); | |||
self.base_fee = Some(base_fee as u128); |
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.
can we also make this u64?
Motivation
Alloy
0.4.0
has been released.Solution
Bump to latest