@@ -28,16 +28,6 @@ use sha3::{Keccak256, Digest};
28
28
use evm:: backend:: { Backend as BackendT , ApplyBackend , Apply } ;
29
29
use crate :: { AccountStorages , AccountCodes , Config , Event , Pallet } ;
30
30
31
- #[ derive( Clone , Eq , PartialEq , Encode , Decode , Default ) ]
32
- #[ cfg_attr( feature = "std" , derive( Debug , Serialize , Deserialize ) ) ]
33
- /// Ethereum account nonce, balance and code. Used by storage.
34
- pub struct Account {
35
- /// Account nonce.
36
- pub nonce : U256 ,
37
- /// Account balance.
38
- pub balance : U256 ,
39
- }
40
-
41
31
#[ derive( Clone , Eq , PartialEq , Encode , Decode ) ]
42
32
#[ cfg_attr( feature = "std" , derive( Debug , Serialize , Deserialize ) ) ]
43
33
/// Ethereum log. Used for `deposit_event`.
@@ -117,12 +107,7 @@ impl<'vicinity, T: Config> BackendT for Backend<'vicinity, T> {
117
107
}
118
108
119
109
fn basic ( & self , address : H160 ) -> evm:: backend:: Basic {
120
- let account = Pallet :: < T > :: account_basic ( & address) ;
121
-
122
- evm:: backend:: Basic {
123
- balance : account. balance ,
124
- nonce : account. nonce ,
125
- }
110
+ Pallet :: < T > :: account_basic ( & address)
126
111
}
127
112
128
113
fn code_size ( & self , address : H160 ) -> usize {
0 commit comments