-
Notifications
You must be signed in to change notification settings - Fork 2.4k
(#1) Alloy Migration: first batch (type conversions) #5768
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
Changes from all commits
7065921
6dff335
754bb74
e5753e2
74c9289
bcc5845
49b01a2
c0fd7e2
c9995d7
d1c85b5
21c8003
75b456b
1501643
346e7ad
4179eb9
5ab8140
433a647
5997661
820dc99
db9c877
4280315
0e6e956
dc79a19
eaf9f07
568c151
f3ab764
32a1134
ab27e35
17a57de
e720e14
2dfe9e4
195d891
9ca8e48
ce4984f
50ff141
f3a400a
e6f2728
2715489
e48bde7
3e18639
a602104
2b48fb1
6efba29
0a68a7c
f40198a
efd5751
69e06ee
2ffb568
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ use ethers_core::{ | |
| types::{H256, U256}, | ||
| utils::rlp, | ||
| }; | ||
| use foundry_evm::utils::b256_to_h256; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the plan still to transition the Anvil types to Alloy U256? And we just are going to do for this file and other untouched ones in follow-up?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep eventually we'll get to them—just letting it happen somewhat naturally by pushing the migration out of the evm crate first. |
||
| use revm::primitives::KECCAK_EMPTY; | ||
| // reexport for convenience | ||
| pub use ethers_core::types::{EIP1186ProofResponse as AccountProof, StorageProof}; | ||
|
|
@@ -28,7 +29,7 @@ impl Default for BasicAccount { | |
| BasicAccount { | ||
| balance: 0.into(), | ||
| nonce: 0.into(), | ||
| code_hash: KECCAK_EMPTY.into(), | ||
| code_hash: b256_to_h256(KECCAK_EMPTY), | ||
| storage_root: KECCAK_NULL_RLP, | ||
| } | ||
| } | ||
|
|
||
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.
mental note that once we merge that PR we're able to finally get rid of all patches