Skip to content

Commit d3582b7

Browse files
committed
remove entry from JournaledAccount
1 parent 75e55a0 commit d3582b7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • crates/context/interface/src/journaled_state

crates/context/interface/src/journaled_state/account.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use crate::{
99
};
1010

1111
use super::entry::JournalEntryTr;
12+
use auto_impl::auto_impl;
1213
use core::ops::Deref;
1314
use database_interface::Database;
1415
use primitives::{
@@ -18,11 +19,10 @@ use state::{Account, Bytecode, EvmStorageSlot};
1819
use std::vec::Vec;
1920

2021
/// Trait that contains database and journal of all changes that were made to the account.
22+
#[auto_impl(&mut, Box)]
2123
pub trait JournaledAccountTr: Deref<Target = Account> {
2224
/// Database error type.
2325
type DatabaseError;
24-
/// Entry type.
25-
type Entry: JournalEntryTr;
2626

2727
/// Creates a new journaled account.
2828
fn sload(
@@ -140,7 +140,6 @@ impl<'a, ENTRY: JournalEntryTr, DB: Database> JournaledAccountTr
140140
for JournaledAccount<'a, ENTRY, DB>
141141
{
142142
type DatabaseError = <DB as Database>::Error;
143-
type Entry = ENTRY;
144143

145144
fn sload(
146145
&mut self,

0 commit comments

Comments
 (0)