Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Apr 22, 2024
1 parent 803faf4 commit f6a945b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/evm/evm/src/executors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl Executor {

/// Returns true if account has no code.
pub fn is_empty_code(&self, address: Address) -> DatabaseResult<bool> {
Ok(self.backend.basic_ref(address)?.map(|acc| acc.is_empty_code_hash()).unwrap_or_default())
Ok(self.backend.basic_ref(address)?.map(|acc| acc.is_empty_code_hash()).unwrap_or(true))
}

#[inline]
Expand Down

0 comments on commit f6a945b

Please sign in to comment.