mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf: avoid cloning bytecode when converting revm's &AccountInfo to reth's Account (#13126)
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user