Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

chore(deps): bump alloy to 0.4.0 #9000

wants to merge 8 commits into from

Conversation

yash-atreya
Copy link
Member

Motivation

Alloy 0.4.0 has been released.

Solution

Bump to latest

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.

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(),
Copy link
Member

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);
Copy link
Member

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?

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.

2 participants