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

update anvil type to match alloy #9637

Conversation

programskillforverification
Copy link
Contributor

Motivation

follow 1876

@programskillforverification programskillforverification marked this pull request as ready for review January 7, 2025 04:20
@programskillforverification
Copy link
Contributor Author

cc @zerosnacks

@@ -1902,10 +1902,10 @@ impl EthApi {
TransactionOrder::Fees => "fees".to_string(),
},
environment: NodeEnvironment {
base_fee: U256::from(self.backend.base_fee()),
base_fee: self.backend.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.

Suggested change
base_fee: self.backend.base_fee() as u128,
base_fee: self.backend.base_fee().to::<u128>(),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

u64 and u128 have no method to

chain_id: self.backend.chain_id().to::<u64>(),
gas_limit: U256::from(self.backend.gas_limit()),
gas_price: U256::from(self.gas_price()),
gas_limit: self.backend.gas_limit() as u64,
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
gas_limit: self.backend.gas_limit() as u64,
gas_limit: self.backend.gas_limit().to::<u64>(),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CI error

@DaniPopes
Copy link
Member

alloy-rs/alloy#1876 (comment)

@DaniPopes DaniPopes closed this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants