perf: avoid cloning bytecode when converting revm's &AccountInfo to reth's Account (#13126)

This commit is contained in:
Hai | RISE
2024-12-04 20:13:35 +07:00
committed by GitHub
parent 8d1a332119
commit 53243a29f3
7 changed files with 18 additions and 9 deletions

View File

@ -147,7 +147,7 @@ impl<T> ExecutionOutcome<T> {
/// Get account if account is known.
pub fn account(&self, address: &Address) -> Option<Option<Account>> {
self.bundle.account(address).map(|a| a.info.clone().map(Into::into))
self.bundle.account(address).map(|a| a.info.as_ref().map(Into::into))
}
/// Get storage if value is known.