-
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
feat(anvil
): remove old ethers-dependent anvil core types
#6842
feat(anvil
): remove old ethers-dependent anvil core types
#6842
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.
getting there!
@@ -2540,12 +2531,13 @@ pub fn prove_storage( | |||
.unwrap(); | |||
|
|||
let item: U256 = { | |||
let decode_value = |bytes: &[u8]| rlp::decode(bytes).expect("decoding db value failed"); | |||
let decode_value = |mut bytes: &[u8]| { | |||
<U256 as alloy_rlp::Decodable>::decode(&mut bytes).expect("decoding db value failed") |
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.
Doesn't U256::decode
work?
@@ -1,225 +0,0 @@ | |||
use crate::eth::error::BlockchainError; |
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.
@mattsse IIRC this was due to lack of object safety on signer?
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.
pog
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.
lgtm, tests fixed in follow up and we're merging into a feature branch so should be good to merge
@@ -33,6 +33,35 @@ pub mod sequence { | |||
} | |||
} | |||
|
|||
pub mod numeric { |
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.
Should this be an alloy util? @DaniPopes
anvil
): remove ethers & old ethers-dependent anvil core typesanvil
): remove old ethers-dependent anvil core types
* here we go again * wip: storage * chore: migrate executor, fmt * wip * chore: roughly only signers left * feat: migrate proof, bar trie stuff * chore: onto tests * chore: passing most tests * chore: fix impersonate * chore: op tests passing * txenvelope * chore: some fixes, typed data * feat(`anvil`): remove old ethers-dependent anvil core types (#6842) * feat: remove most ethers and old anvil core types * chore: replace handles for providers constructed on actual tests * finish moving test providers * chore: switch to decode_revert * chore: replace with maybe_decode_revert * u256::decode * chore: move all of anvil but tests and block subscriptions off ethers * re-enable opt * solve nits * chore: remove more println * chore: rename to gen * chore: update alloy, cleanup * chore: fix tests * chore: rename to sign * chore: fmt * chore: cleanup * docs * chore: more cleanup * clippy/fmt * chore: remove ethers from anvil-core, rm fastrlp * chore: remove fastrlp from exceptions in deny.toml * chore: rename and cleanup * directly use type to decode * address review comments * feat: onbjerg nits * chore: fix deny check * bump alloy * chore: add to_ethers ext trait for wallets * chore: update deps, revert changed typed-data tests, set chain id as none when signing typed data --------- Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
Motivation
removes ethers usage in all of anvil. Only remaining usage is:
test failures will be fixed in another PR on 6808.
Goes into #6808.
Solution