-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
update anvil type to match alloy #9637
Conversation
cc @zerosnacks |
crates/anvil/src/eth/api.rs
Outdated
@@ -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, |
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.
base_fee: self.backend.base_fee() as u128, | |
base_fee: self.backend.base_fee().to::<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.
u64
and u128
have no method to
crates/anvil/src/eth/api.rs
Outdated
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, |
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.
gas_limit: self.backend.gas_limit() as u64, | |
gas_limit: self.backend.gas_limit().to::<u64>(), |
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.
CI error
Motivation
follow 1876