mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
fix(primitives-traits): handle KECCAK_EMPTY in From<TrieAccount> (#22200)
This commit is contained in:
@@ -91,7 +91,11 @@ impl From<revm_state::Account> for Account {
|
||||
|
||||
impl From<TrieAccount> for Account {
|
||||
fn from(value: TrieAccount) -> Self {
|
||||
Self { balance: value.balance, nonce: value.nonce, bytecode_hash: Some(value.code_hash) }
|
||||
Self {
|
||||
balance: value.balance,
|
||||
nonce: value.nonce,
|
||||
bytecode_hash: (value.code_hash != KECCAK_EMPTY).then_some(value.code_hash),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user